Use for(var: list) and not foreach(var, list)

This commit is contained in:
Craig Drummond
2017-11-27 22:36:53 +00:00
committed by Craig Drummond
parent 102876d522
commit 6e100a5ef5
135 changed files with 684 additions and 694 deletions

View File

@@ -55,7 +55,7 @@ bool PlaylistsProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sou
return true;
}
foreach (PlaylistsModel::SongItem *s, pl->songs) {
for (PlaylistsModel::SongItem *s: pl->songs) {
if (matchesFilter(*s)) {
return true;
}