AK: And one more RetainPtr::operator==() G++ complains about in LibGUI.

This commit is contained in:
Andreas Kling 2019-04-19 21:36:11 +02:00
parent b985d0ec6e
commit e001954193
Notes: sideshowbarker 2024-07-19 14:39:20 +09:00

View file

@ -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; }