Commit b2e1b388 authored by Max Kellermann's avatar Max Kellermann

playlist/pls: convert "while" loop to "for" loop

parent 5c6fe97b
......@@ -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--;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment