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:
Alexey Sokolov
2015-12-06 23:58:03 +00:00
parent 3861b6a583
commit d185d6f22d
131 changed files with 36734 additions and 36735 deletions
+4 -4
View File
@@ -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)
: "");
}