1
0
Fork 0
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:
reuk 2019-07-22 14:44:04 +01:00 committed by Tom Poole
parent a12bc32979
commit f810d3d56a

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.