mirror of
https://github.com/znc/znc.git
synced 2026-07-03 16:31:49 +02:00
clang-format: switch tabs to spaces
I like tabs, but I have to admit that spaces make source code more consistent, because every editor/viewer tends to render tabs differently :(
This commit is contained in:
+4
-4
@@ -26,7 +26,7 @@ CServer::CServer(const CString& sName, unsigned short uPort,
|
||||
CServer::~CServer() {}
|
||||
|
||||
bool CServer::IsValidHostName(const CString& sHostName) {
|
||||
return (!sHostName.empty() && !sHostName.Contains(" "));
|
||||
return (!sHostName.empty() && !sHostName.Contains(" "));
|
||||
}
|
||||
|
||||
const CString& CServer::GetName() const { return m_sName; }
|
||||
@@ -35,7 +35,7 @@ const CString& CServer::GetPass() const { return m_sPass; }
|
||||
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)
|
||||
: "");
|
||||
return m_sName + " " + CString(m_bSSL ? "+" : "") + CString(m_uPort) +
|
||||
CString(bIncludePassword ? (m_sPass.empty() ? "" : " " + m_sPass)
|
||||
: "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user