summaryrefslogtreecommitdiff
path: root/src/playlist
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-08 19:29:47 +0100
committerMax Kellermann <max@duempel.org>2014-01-08 19:50:05 +0100
commitb2e1b3886452451aa4b11c6eeb44d97f96567b35 (patch)
treeb54f4c7f0a25f135ecb5fefaf82985a2971b4c4a /src/playlist
parent5c6fe97b350325396b4c7f168da37d25b26c3044 (diff)
playlist/pls: convert "while" loop to "for" loop
Diffstat (limited to 'src/playlist')
-rw-r--r--src/playlist/PlsPlaylistPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/playlist/PlsPlaylistPlugin.cxx b/src/playlist/PlsPlaylistPlugin.cxx
index 6994c8a3d..efd74e9c5 100644
--- a/src/playlist/PlsPlaylistPlugin.cxx
+++ b/src/playlist/PlsPlaylistPlugin.cxx
@@ -59,7 +59,7 @@ pls_parser(GKeyFile *keyfile, std::forward_list<SongPointer> &songs)
}
}
- while (num_entries > 0) {
+ for (; num_entries > 0; --num_entries) {
Song *song;
char key[64];
@@ -95,7 +95,6 @@ pls_parser(GKeyFile *keyfile, std::forward_list<SongPointer> &songs)
song->tag = tag.CommitNew();
songs.emplace_front(song);
- num_entries--;
}
}