mirror of
https://github.com/znc/znc.git
synced 2026-07-03 00:11:59 +02:00
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:
+4
-4
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user