Use member initialization lists [-Weffc++] (#270)

This commit is contained in:
J-P Nurmi
2015-02-28 21:59:01 +01:00
parent a1165cfcca
commit 6a6bb648d1
26 changed files with 63 additions and 110 deletions
+6 -5
View File
@@ -16,11 +16,12 @@
#include <znc/Server.h>
CServer::CServer(const CString& sName, unsigned short uPort, const CString& sPass, bool bSSL) {
m_sName = sName;
m_uPort = (uPort) ? uPort : (unsigned short)6667;
m_sPass = sPass;
m_bSSL = bSSL;
CServer::CServer(const CString& sName, unsigned short uPort, const CString& sPass, bool bSSL)
: m_sName(sName),
m_uPort((uPort) ? uPort : (unsigned short)6667),
m_sPass(sPass),
m_bSSL(bSSL)
{
}
CServer::~CServer() {}