From 1404a28ffa4d98154e16f585a56918c7de2efe4e Mon Sep 17 00:00:00 2001 From: psychon Date: Thu, 18 Feb 2010 12:44:52 +0000 Subject: [PATCH] Make CSmartPtr::operator == const Yet Another cppcheck warning. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1763 726aef4b-f618-498e-8847-2d620e286838 --- Utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils.h b/Utils.h index eaedc8da..f15d46c9 100644 --- a/Utils.h +++ b/Utils.h @@ -413,8 +413,8 @@ public: // Overloaded operators T& operator *() const { assert(m_pType); return *m_pType; } T* operator ->() const { assert(m_pType); return m_pType; } - bool operator ==(T* rhs) { return (m_pType == rhs); } - bool operator ==(const CSmartPtr& rhs) { return (m_pType == *rhs); } + bool operator ==(T* rhs) const { return (m_pType == rhs); } + bool operator ==(const CSmartPtr& rhs) const { return (m_pType == *rhs); } /** * @brief Attach() to a raw pointer