mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-18 17:35:43 +00:00
General: Make use of ranged for where applicable
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user