Changed all references to std::string over to CString

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@240 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-05-05 18:11:04 +00:00
parent 7f0215de40
commit beb5b49b3f
36 changed files with 990 additions and 982 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
#include "main.h"
#include "Server.h"
CServer::CServer(const string& sName, unsigned short uPort, const string& sPass, bool bSSL) {
CServer::CServer(const CString& sName, unsigned short uPort, const CString& sPass, bool bSSL) {
m_sName = sName;
m_uPort = (uPort) ? uPort : 6667;
m_sPass = sPass;
@@ -10,7 +10,7 @@ CServer::CServer(const string& sName, unsigned short uPort, const string& sPass,
CServer::~CServer() {}
bool CServer::IsValidHostName(const string& sHostName) {
bool CServer::IsValidHostName(const CString& sHostName) {
const char* p = sHostName.c_str();
if (sHostName.empty()) {
@@ -26,8 +26,8 @@ bool CServer::IsValidHostName(const string& sHostName) {
return true;
}
const string& CServer::GetName() const { return m_sName; }
const CString& CServer::GetName() const { return m_sName; }
unsigned short CServer::GetPort() const { return m_uPort; }
const string& CServer::GetPass() const { return m_sPass; }
const CString& CServer::GetPass() const { return m_sPass; }
bool CServer::IsSSL() const { return m_bSSL; }