Gui: [skip ci] add get() method to WeakPtrT class

This commit is contained in:
wmayer
2021-10-21 15:50:18 +02:00
parent b24ac5f2f8
commit 68e4806788

View File

@@ -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