aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/tagupdater.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-09-07 22:08:54 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-09-07 22:08:54 +0000
commit1e31fe896524513577911e382897b841e40a4814 (patch)
tree153483337dcab82e0bc32cc19f7876a7eb9593c7 /src/qmmpui/tagupdater.cpp
parent1d6f69e20769d902a70001277199129361d0a761 (diff)
downloadqmmp-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.cpp4
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())