From aaaae4e51a01e11a73dbb29ed09f024cf0ec786c Mon Sep 17 00:00:00 2001 From: psychon Date: Thu, 30 Apr 2009 19:15:21 +0000 Subject: [PATCH] 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 --- User.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/User.h b/User.h index 50faaf8d..3c64c807 100644 --- a/User.h +++ b/User.h @@ -87,7 +87,7 @@ public: 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 IsUserAttached() const { return (m_vClients.size() > 0); } + bool IsUserAttached() const { return !m_vClients.empty(); } void UserConnected(CClient* pClient); void UserDisconnected(CClient* pClient);