From e0019541934e6b96ac05a4d32d7a29d45cbb575c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 19 Apr 2019 21:36:11 +0200 Subject: [PATCH] AK: And one more RetainPtr::operator==() G++ complains about in LibGUI. --- AK/RetainPtr.h | 3 +++ 1 file changed, 3 insertions(+) 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; }