1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

New class: WeakReference. Used this to clean up and simplify implementation of Component::SafePointer and BailOutChecker.

This commit is contained in:
Julian Storer 2010-12-20 16:52:20 +00:00
parent d60f661789
commit 2bb0c77216
41 changed files with 655 additions and 275 deletions

View file

@ -268,7 +268,7 @@ int ModalComponentManager::runEventLoopForCurrentComponent()
if (currentlyModal == 0)
return 0;
Component::SafePointer<Component> prevFocused (Component::getCurrentlyFocusedComponent());
WeakReference<Component> prevFocused (Component::getCurrentlyFocusedComponent());
int returnValue = 0;
bool finished = false;