mirror of
https://github.com/znc/znc.git
synced 2026-07-01 23:41:36 +02:00
Use member initialization lists [-Weffc++] (#270)
This commit is contained in:
+6
-5
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user