playlist/pls: convert "while" loop to "for" loop
This commit is contained in:
parent
5c6fe97b35
commit
b2e1b38864
@ -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;
|
Song *song;
|
||||||
|
|
||||||
char key[64];
|
char key[64];
|
||||||
@ -95,7 +95,6 @@ pls_parser(GKeyFile *keyfile, std::forward_list<SongPointer> &songs)
|
|||||||
|
|
||||||
song->tag = tag.CommitNew();
|
song->tag = tag.CommitNew();
|
||||||
songs.emplace_front(song);
|
songs.emplace_front(song);
|
||||||
num_entries--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user