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: