Browse Source

Made dereferencing WeakRef behave more like the built-in pointer types

tags/2021-05-28
reuk Tom Poole 5 years ago
parent
commit
f810d3d56a
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      modules/juce_core/memory/juce_WeakReference.h

+ 1
- 4
modules/juce_core/memory/juce_WeakReference.h View File

@@ -105,10 +105,7 @@ public:
operator ObjectType*() const noexcept { return get(); }
/** Returns the object that this pointer refers to, or null if the object no longer exists. */
ObjectType* operator->() noexcept { return get(); }
/** Returns the object that this pointer refers to, or null if the object no longer exists. */
const ObjectType* operator->() const noexcept { return get(); }
ObjectType* operator->() const noexcept { return get(); }
/** This returns true if this reference has been pointing at an object, but that object has
since been deleted.


Loading…
Cancel
Save