AK: Add RetainPtr::operator==() overload G++ is whining about.

This commit is contained in:
Andreas Kling 2019-04-19 21:34:47 +02:00
commit b985d0ec6e
Notes: sideshowbarker 2024-07-19 14:39:23 +09:00

View file

@ -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: