diff --git a/AK/RetainPtr.h b/AK/RetainPtr.h index 995c377571..d7140ab1c7 100644 --- a/AK/RetainPtr.h +++ b/AK/RetainPtr.h @@ -125,6 +125,9 @@ public: bool operator==(const RetainPtr& other) const { return m_ptr == other.m_ptr; } bool operator!=(const RetainPtr& other) const { return m_ptr != other.m_ptr; } + bool operator==(RetainPtr& other) { return m_ptr == other.m_ptr; } + bool operator!=(RetainPtr& other) { return m_ptr != other.m_ptr; } + bool operator==(const T* other) const { return m_ptr == other; } bool operator!=(const T* other) const { return m_ptr != other; }