Use for(var: list) and not foreach(var, list)
This commit is contained in:
committed by
Craig Drummond
parent
102876d522
commit
6e100a5ef5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user