Use for(var: list) and not foreach(var, list)
This commit is contained in:
committed by
Craig Drummond
parent
102876d522
commit
6e100a5ef5
@@ -53,7 +53,7 @@ QMimeData *PlayQueueProxyModel::mimeData(const QModelIndexList &indexes) const
|
||||
{
|
||||
QModelIndexList sourceIndexes;
|
||||
|
||||
foreach(QModelIndex index, indexes) {
|
||||
for (const QModelIndex &index: indexes) {
|
||||
sourceIndexes.append(mapToSource(index));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user