summaryrefslogtreecommitdiff
path: root/AK/Weakable.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-13 17:00:45 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-13 17:00:45 +0200
commit560405667e92014282c1442a2df80092af6fec61 (patch)
treea1715e487362842b2bdc29fefb48103e3e5aa684 /AK/Weakable.h
parent16fff6dff7a59918b0e914c2bca1ab8203191799 (diff)
downloadserenity-560405667e92014282c1442a2df80092af6fec61.zip
Start using WeakPtr for some of the WindowManager window pointers.
Diffstat (limited to 'AK/Weakable.h')
-rw-r--r--AK/Weakable.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/AK/Weakable.h b/AK/Weakable.h
index bd24704961..8f47b6ac2f 100644
--- a/AK/Weakable.h
+++ b/AK/Weakable.h
@@ -2,6 +2,7 @@
#include "Assertions.h"
#include "Retainable.h"
+#include "RetainPtr.h"
namespace AK {
@@ -16,8 +17,8 @@ public:
const T* ptr() const { return static_cast<const T*>(m_ptr); }
private:
- explicit WeakLink(Weakable<T>& weakable) : m_ptr(&weakable) { }
- Weakable<T>* m_ptr;
+ explicit WeakLink(T& weakable) : m_ptr(&weakable) { }
+ T* m_ptr;
};
template<typename T>