Use range-based for loop

0.6.3
Capostrophic 7 years ago committed by GitHub
parent 8be93b4a12
commit 3d3bef94cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -764,10 +764,8 @@ std::vector< CSMWorld::UniversalId > CSVWorld::Table::getDraggedRecords() const
QModelIndexList selectedRows = selectionModel()->selectedRows();
std::vector<CSMWorld::UniversalId> idToDrag;
foreach (QModelIndex it, selectedRows) //I had a dream. Dream where you could use C++11 in OpenMW.
{
for (QModelIndex& it : selectedRows)
idToDrag.push_back (getUniversalId (it.row()));
}
return idToDrag;
}

Loading…
Cancel
Save