diff --git a/launcher/QObjectPtr.h b/launcher/QObjectPtr.h index 57974939..d52bfe77 100644 --- a/launcher/QObjectPtr.h +++ b/launcher/QObjectPtr.h @@ -77,10 +77,10 @@ public: { return m_ptr; } - bool operator==(const shared_qobject_ptr& other) { + bool operator==(const shared_qobject_ptr& other) const { return m_ptr == other.m_ptr; } - bool operator!=(const shared_qobject_ptr& other) { + bool operator!=(const shared_qobject_ptr& other) const { return m_ptr != other.m_ptr; }