Fix compilation error - m_roles contains QObject* and needs a cast 07/21607/1 7.99.2 halibut/7.99.2 halibut_7.99.2
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 12 Jun 2019 10:03:21 +0000 (13:03 +0300)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 12 Jun 2019 10:05:01 +0000 (13:05 +0300)
Bug-AGL: SPEC-2473

Change-Id: Ia07be3c3b9231b34a8607b430f6f9dfa8ad8b530
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
app/mixer.cpp

index 873f1be..fae2e6a 100644 (file)
@@ -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);