Even more optimization of this list iteration.
I hope everyone is happy, now.
This commit is contained in:
parent
fea7eea417
commit
51a0d540e5
@ -466,7 +466,7 @@ BPoseView::DeleteProperty(BMessage* specifier, int32 form,
|
|||||||
} else
|
} else
|
||||||
Delete(entryList, false, settings.AskBeforeDeleteFile());
|
Delete(entryList, false, settings.AskBeforeDeleteFile());
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < entryList->CountItems(); i++)
|
for (int i = entryList->CountItems() - 1; i >= 0; i--)
|
||||||
delete entryList->ItemAt(i);
|
delete entryList->ItemAt(i);
|
||||||
delete entryList;
|
delete entryList;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user