summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-06-12 13:03:21 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-06-12 13:05:01 +0300
commit38598f4a2a84b6727bcbaefbe79da0ba740d32d2 (patch)
treefb4eb4459dd0fc084d44dcbac181bdb3fff3a815
parentd4ed0297e4b918ab67a1d1cd2337c307bb16caa2 (diff)
Fix compilation error - m_roles contains QObject* and needs a casthalibut_7.99.2halibut/7.99.27.99.2
Bug-AGL: SPEC-2473 Change-Id: Ia07be3c3b9231b34a8607b430f6f9dfa8ad8b530 Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
-rw-r--r--app/mixer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/mixer.cpp b/app/mixer.cpp
index 873f1be..fae2e6a 100644
--- 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);
- 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);