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
This commit is contained in:
psychon
2010-02-18 12:44:52 +00:00
parent 17fdbf35bb
commit 1404a28ffa

View File

@@ -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<T>& rhs) { return (m_pType == *rhs); }
bool operator ==(T* rhs) const { return (m_pType == rhs); }
bool operator ==(const CSmartPtr<T>& rhs) const { return (m_pType == *rhs); }
/**
* @brief Attach() to a raw pointer