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
+5 -5
View File
@@ -1,13 +1,13 @@
#include "Buffer.h"
CBufLine::CBufLine(const string& sPre, const string& sPost) {
CBufLine::CBufLine(const CString& sPre, const CString& sPost) {
m_sPre = sPre;
m_sPost = sPost;
}
CBufLine::~CBufLine() {}
void CBufLine::GetLine(const string& sTarget, string& sRet) {
void CBufLine::GetLine(const CString& sTarget, CString& sRet) {
sRet = m_sPre + sTarget + m_sPost;
}
@@ -17,7 +17,7 @@ CBuffer::CBuffer(unsigned int uLineCount) {
CBuffer::~CBuffer() {}
int CBuffer::AddLine(const string& sPre, const string& sPost) {
int CBuffer::AddLine(const CString& sPre, const CString& sPost) {
if (!m_uLineCount) {
return 0;
}
@@ -30,7 +30,7 @@ int CBuffer::AddLine(const string& sPre, const string& sPost) {
return size();
}
bool CBuffer::GetLine(const string& sTarget, string& sRet, unsigned int uIdx) {
bool CBuffer::GetLine(const CString& sTarget, CString& sRet, unsigned int uIdx) {
if (uIdx >= size()) {
return false;
}
@@ -39,7 +39,7 @@ bool CBuffer::GetLine(const string& sTarget, string& sRet, unsigned int uIdx) {
return true;
}
bool CBuffer::GetNextLine(const string& sTarget, string& sRet) {
bool CBuffer::GetNextLine(const CString& sTarget, CString& sRet) {
sRet = "";
if (!size()) {