mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Add clang-format configuration.
For now, it uses tabs like before, to make the diff easier to read/check. One of following commits will switch it to spaces.
This commit is contained in:
+8
-8
@@ -16,13 +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() {}
|
||||
|
||||
@@ -37,5 +36,6 @@ bool CServer::IsSSL() const { return m_bSSL; }
|
||||
|
||||
CString CServer::GetString(bool bIncludePassword) const {
|
||||
return m_sName + " " + CString(m_bSSL ? "+" : "") + CString(m_uPort) +
|
||||
CString(bIncludePassword ? (m_sPass.empty() ? "" : " " + m_sPass) : "");
|
||||
CString(bIncludePassword ? (m_sPass.empty() ? "" : " " + m_sPass)
|
||||
: "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user