mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
4
Utils.h
4
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<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
|
||||
|
||||
Reference in New Issue
Block a user