General: Make use of ranged for where applicable

This commit is contained in:
Lioncash
2020-06-28 17:30:49 -04:00
parent 9bc2723498
commit ec66d7af9d
25 changed files with 162 additions and 147 deletions

View File

@@ -47,9 +47,9 @@ void CResourceTableView::DeleteSelected()
QVector<CResourceEntry*> ResourcesToDelete;
QVector<CVirtualDirectory*> DirsToDelete;
foreach (QModelIndex Index, List)
for (const QModelIndex Index : List)
{
QModelIndex SourceIndex = pProxy->mapToSource(Index);
const QModelIndex SourceIndex = pProxy->mapToSource(Index);
if (pModel->IsIndexDirectory(SourceIndex))
DirsToDelete << pModel->IndexDirectory(SourceIndex);