mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user