mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Made dereferencing WeakRef behave more like the built-in pointer types
This commit is contained in:
parent
a12bc32979
commit
f810d3d56a
1 changed files with 1 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue