diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-09-07 22:08:54 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-09-07 22:08:54 +0000 |
| commit | 1e31fe896524513577911e382897b841e40a4814 (patch) | |
| tree | 153483337dcab82e0bc32cc19f7876a7eb9593c7 /src/qmmpui/tagupdater.cpp | |
| parent | 1d6f69e20769d902a70001277199129361d0a761 (diff) | |
| download | qmmp-1e31fe896524513577911e382897b841e40a4814.tar.gz qmmp-1e31fe896524513577911e382897b841e40a4814.tar.bz2 qmmp-1e31fe896524513577911e382897b841e40a4814.zip | |
removed foreach macro
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9067 90c681e8-e032-0410-971d-27865f9a5e38
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()) |
