diff options
Diffstat (limited to 'src/imports/audioengine/qaudioengine_openal_p.cpp')
-rw-r--r-- | src/imports/audioengine/qaudioengine_openal_p.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/audioengine/qaudioengine_openal_p.cpp b/src/imports/audioengine/qaudioengine_openal_p.cpp index 839a584c5..fd9b1da1f 100644 --- a/src/imports/audioengine/qaudioengine_openal_p.cpp +++ b/src/imports/audioengine/qaudioengine_openal_p.cpp @@ -235,15 +235,15 @@ QAudioEnginePrivate::~QAudioEnginePrivate() #ifdef DEBUG_AUDIOENGINE qDebug() << "QAudioEnginePrivate::dtor"; #endif - QObjectList children = this->children(); - foreach (QObject *child, children) { + const QObjectList children = this->children(); + for (QObject *child : children) { QSoundSourcePrivate* s = qobject_cast<QSoundSourcePrivate*>(child); if (!s) continue; s->release(); } - foreach (QSoundBufferPrivateAL *buffer, m_staticBufferPool) { + for (QSoundBufferPrivateAL *buffer : qAsConst(m_staticBufferPool)) { delete buffer; } m_staticBufferPool.clear(); |