Even more optimization of this list iteration.

I hope everyone is happy, now.
This commit is contained in:
Adrien Destugues 2014-08-08 08:28:24 +02:00
parent fea7eea417
commit 51a0d540e5

View File

@ -466,7 +466,7 @@ BPoseView::DeleteProperty(BMessage* specifier, int32 form,
} else
Delete(entryList, false, settings.AskBeforeDeleteFile());
} else {
for (int i = 0; i < entryList->CountItems(); i++)
for (int i = entryList->CountItems() - 1; i >= 0; i--)
delete entryList->ItemAt(i);
delete entryList;
}