MenuItem destructor optimization
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
Make Delete a function that returns the deleted TMenuItem so that
MenuItem.Delete(ItemIndex).Free;
can be used instead of
MenuItem.Items[ItemIndex].Free;
The former is faster because TMenuItem.Destroy doesn't need to search through the parent's list.
Additional information:
See r62738 that reverted this new optimization.
Mantis conversion info:
- Mantis ID: 36789