summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz.qnx@kdab.com>2012-03-09 15:41:40 +0100
committerThomas McGuire <thomas.mcguire@kdab.com>2012-11-23 13:12:01 +0100
commitee207f708cd73a8b2a4fd252a6bcc790499c34d8 (patch)
treec5dce911a6f446999d17e05b77bf5431bfeb457f
parent14a366111055d4651d960a7d5f051a1e04e63485 (diff)
QSoundEffect: fix a compiler warning
GCC complained about wrong order of initialisation, and it's right about it. Change-Id: I27509378d2728cbba2f86aac28eea5bee1433e06 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
-rw-r--r--src/multimedia/effects/qsoundeffect_qmedia_p.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/effects/qsoundeffect_qmedia_p.cpp b/src/multimedia/effects/qsoundeffect_qmedia_p.cpp
index f323661e9b..5b26aabcc4 100644
--- a/src/multimedia/effects/qsoundeffect_qmedia_p.cpp
+++ b/src/multimedia/effects/qsoundeffect_qmedia_p.cpp
@@ -64,9 +64,9 @@ QSoundEffectPrivate::QSoundEffectPrivate(QObject* parent):
QObject(parent),
m_loopCount(1),
m_runningCount(0),
- m_player(0),
+ m_playing(false),
m_status(QSoundEffect::Null),
- m_playing(false)
+ m_player(0)
{
m_player = new QMediaPlayer(this, QMediaPlayer::LowLatency);
connect(m_player, SIGNAL(stateChanged(QMediaPlayer::State)), SLOT(stateChanged(QMediaPlayer::State)));