Code Review
/
apps
/
mixer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix compilation error - m_roles contains QObject* and needs a cast
[apps/mixer.git]
/
app
/
mixer.cpp
diff --git
a/app/mixer.cpp
b/app/mixer.cpp
index
873f1be
..
fae2e6a
100644
(file)
--- a/
app/mixer.cpp
+++ b/
app/mixer.cpp
@@
-120,7
+120,8
@@
void Mixer::onClientEventReceived(QString eventName, const QJsonValue& data)
int value = data.toObject()["value"].toDouble() * 100;
value = qBound(0, value, 100);
int value = data.toObject()["value"].toDouble() * 100;
value = qBound(0, value, 100);
- for (AudioRole *ar : m_roles) {
+ for (QObject *o : m_roles) {
+ AudioRole *ar = static_cast<AudioRole*>(o);
if (ar->Name() == name) {
ar->BeginUpdate();
ar->setValue(value);
if (ar->Name() == name) {
ar->BeginUpdate();
ar->setValue(value);