Gui: [skip ci] add get() method to WeakPtrT class
This commit is contained in:
@@ -274,6 +274,11 @@ public:
|
||||
bool operator!= (const WeakPtrT<T>& p) const {
|
||||
return ptr != p.ptr;
|
||||
}
|
||||
/*! Get a pointer to the object or 0 if it doesn't exist any more. */
|
||||
T* get() const noexcept
|
||||
{
|
||||
return ptr.get<T>();
|
||||
}
|
||||
|
||||
private:
|
||||
// disable
|
||||
|
||||
Reference in New Issue
Block a user