diff options
Diffstat (limited to 'src/qmmpui/tagupdater.cpp')
| -rw-r--r-- | src/qmmpui/tagupdater.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmmpui/tagupdater.cpp b/src/qmmpui/tagupdater.cpp index bb0ca4bfa..1feb7cb21 100644 --- a/src/qmmpui/tagupdater.cpp +++ b/src/qmmpui/tagupdater.cpp @@ -23,7 +23,7 @@ TagUpdater::TagUpdater(QObject* o, QList<PlayListTrack *> tracks) : m_observable(o) { m_tracks = tracks; - foreach(PlayListTrack *t, m_tracks) + for(PlayListTrack *t : qAsConst(m_tracks)) t->beginUsage(); connect(m_observable, SIGNAL(destroyed(QObject *)),SLOT(updateTags())); connect(m_observable, SIGNAL(destroyed(QObject *)),SLOT(deleteLater())); @@ -31,7 +31,7 @@ TagUpdater::TagUpdater(QObject* o, QList<PlayListTrack *> tracks) : m_observable void TagUpdater::updateTags() { - foreach (PlayListTrack *t, m_tracks) + for(PlayListTrack *t : qAsConst(m_tracks)) { t->endUsage(); if (!t->isUsed() && t->isSheduledForDeletion()) |
