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
+2 -2
View File
@@ -19,9 +19,9 @@ CString CTemplateLoopContext::GetValue(const CString& sName) {
}
if (sName.CaseCmp("__ID__") == 0) {
return CString::ToString(GetRowIndex() +1);
return CString(GetRowIndex() +1);
} else if (sName.CaseCmp("__COUNT__") == 0) {
return CString::ToString(GetRowCount());
return CString(GetRowCount());
} else if (sName.CaseCmp("__ODD__") == 0) {
return ((GetRowIndex() %2) ? "" : "1");
} else if (sName.CaseCmp("__EVEN__") == 0) {