From b985d0ec6e695014bfe7a5cc6fa7b229f1bb73b9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 19 Apr 2019 21:34:47 +0200 Subject: [PATCH] AK: Add RetainPtr::operator==() overload G++ is whining about. --- AK/RetainPtr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AK/RetainPtr.h b/AK/RetainPtr.h index b23d070d2e..995c377571 100644 --- a/AK/RetainPtr.h +++ b/AK/RetainPtr.h @@ -128,6 +128,9 @@ public: bool operator==(const T* other) const { return m_ptr == other; } bool operator!=(const T* other) const { return m_ptr != other; } + bool operator==(T* other) { return m_ptr == other; } + bool operator!=(T* other) { return m_ptr != other; } + bool is_null() const { return !m_ptr; } private: