Migrated away from CString::ToString() in favor of explicit constructors

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@669 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2006-02-25 09:43:35 +00:00
parent acb9012540
commit a9e60b43c5
24 changed files with 127 additions and 114 deletions
+7 -7
View File
@@ -275,7 +275,7 @@ public:
m_Buffer.SetLineCount(atoi(sCount.c_str()));
}
PutModule("Buffer count is set to [" + CString::ToString(m_Buffer.GetLineCount()) + "]");
PutModule("Buffer count is set to [" + CString(m_Buffer.GetLineCount()) + "]");
} else if (strcasecmp(sCmdName.c_str(), "DEL") == 0) {
Remove(atoi(sCommand.Token(1).c_str()));
} else {
@@ -318,7 +318,7 @@ private:
for (unsigned int a = 0; a < uIdx; a++, it++);
(*it).SetDisabled(bDisabled);
PutModule("Id " + CString::ToString(uIdx +1) + ((bDisabled) ? " Disabled" : " Enabled"));
PutModule("Id " + CString(uIdx +1) + ((bDisabled) ? " Disabled" : " Enabled"));
}
void List() {
@@ -336,7 +336,7 @@ private:
CWatchEntry& WatchEntry = *it;
Table.AddRow();
Table.SetCell("Id", CString::ToString(uIdx));
Table.SetCell("Id", CString(uIdx));
Table.SetCell("HostMask", WatchEntry.GetHostMask());
Table.SetCell("Target", WatchEntry.GetTarget());
Table.SetCell("Pattern", WatchEntry.GetPattern());
@@ -373,11 +373,11 @@ private:
PutModule("/msg " + GetModNick() + " ADD " + WatchEntry.GetHostMask() + " " + WatchEntry.GetTarget() + " " + WatchEntry.GetPattern());
if (WatchEntry.GetSourcesStr().size()) {
PutModule("/msg " + GetModNick() + " SETSOURCES " + CString::ToString(uIdx) + " " + WatchEntry.GetSourcesStr());
PutModule("/msg " + GetModNick() + " SETSOURCES " + CString(uIdx) + " " + WatchEntry.GetSourcesStr());
}
if (WatchEntry.IsDisabled()) {
PutModule("/msg " + GetModNick() + " DISABLE " + CString::ToString(uIdx));
PutModule("/msg " + GetModNick() + " DISABLE " + CString(uIdx));
}
}
@@ -395,7 +395,7 @@ private:
for (unsigned int a = 0; a < uIdx; a++, it++);
(*it).SetSources(sSources);
PutModule("Sources set for Id " + CString::ToString(uIdx +1) + ".");
PutModule("Sources set for Id " + CString(uIdx +1) + ".");
}
void Remove(unsigned int uIdx) {
@@ -409,7 +409,7 @@ private:
for (unsigned int a = 0; a < uIdx; a++, it++);
m_lsWatchers.erase(it);
PutModule("Id " + CString::ToString(uIdx +1) + " Removed.");
PutModule("Id " + CString(uIdx +1) + " Removed.");
}
void Help() {