mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-23 01:44:22 +00:00
New class: WeakReference. Used this to clean up and simplify implementation of Component::SafePointer and BailOutChecker.
This commit is contained in:
parent
d60f661789
commit
2bb0c77216
41 changed files with 655 additions and 275 deletions
|
|
@ -341,10 +341,10 @@ private:
|
|||
|
||||
~RowItem()
|
||||
{
|
||||
component.deleteAndZero();
|
||||
delete component.get();
|
||||
}
|
||||
|
||||
Component::SafePointer<Component> component;
|
||||
WeakReference<Component> component;
|
||||
TreeViewItem* item;
|
||||
int uid;
|
||||
bool shouldKeep;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue