forked from teamnwah/openmw-tes3coop
Use range-based for loop
This commit is contained in:
parent
8be93b4a12
commit
3d3bef94cd
1 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue