mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +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
|
|
@ -192,7 +192,7 @@ public:
|
|||
|
||||
if (newComponent != current)
|
||||
{
|
||||
Component::SafePointer<Component> safeNewComp (newComponent);
|
||||
WeakReference<Component> safeNewComp (newComponent);
|
||||
const ModifierKeys originalButtonState (buttonState);
|
||||
|
||||
if (current != 0)
|
||||
|
|
@ -437,7 +437,7 @@ public:
|
|||
|
||||
private:
|
||||
MouseInputSource& source;
|
||||
Component::SafePointer<Component> componentUnderMouse;
|
||||
WeakReference<Component> componentUnderMouse;
|
||||
ComponentPeer* lastPeer;
|
||||
|
||||
Point<int> unboundedMouseOffset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue