mirror of
https://github.com/znc/znc.git
synced 2026-08-12 11:52:57 +02:00
Micro-optimization
!m.empty() might be a littler faster than m.size() > 0, but I doubt one can measure the difference here... git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1501 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -87,7 +87,7 @@ public:
|
|||||||
bool PutStatusNotice(const CString& sLine, CClient* pClient = NULL, CClient* pSkipClient = NULL);
|
bool PutStatusNotice(const CString& sLine, CClient* pClient = NULL, CClient* pSkipClient = NULL);
|
||||||
bool PutModule(const CString& sModule, const CString& sLine, CClient* pClient = NULL, CClient* pSkipClient = NULL);
|
bool PutModule(const CString& sModule, const CString& sLine, CClient* pClient = NULL, CClient* pSkipClient = NULL);
|
||||||
|
|
||||||
bool IsUserAttached() const { return (m_vClients.size() > 0); }
|
bool IsUserAttached() const { return !m_vClients.empty(); }
|
||||||
void UserConnected(CClient* pClient);
|
void UserConnected(CClient* pClient);
|
||||||
void UserDisconnected(CClient* pClient);
|
void UserDisconnected(CClient* pClient);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user