diff options
Diffstat (limited to 'plugins/NewAwaySysMod/CommonLibs/CString.cpp')
-rw-r--r-- | plugins/NewAwaySysMod/CommonLibs/CString.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/NewAwaySysMod/CommonLibs/CString.cpp b/plugins/NewAwaySysMod/CommonLibs/CString.cpp index a021132b14..b2a60cbbec 100644 --- a/plugins/NewAwaySysMod/CommonLibs/CString.cpp +++ b/plugins/NewAwaySysMod/CommonLibs/CString.cpp @@ -177,7 +177,7 @@ TString<T>& TString<T>::Replace(int nIndex, int nCount, const T *szReplaceBy) {
return *this;
}
- T *pCurPos = pBuf;
+
TString<T> Result;
Result.GetBuffer(1)[0] = '\0';
Result.ReleaseBuffer(0); // set the string to ""; we can't do it in a usual way (using a constructor or an assignment) because we don't know whether "" needs to be unicode or ansi
@@ -339,9 +339,11 @@ TCString DBGetContactSettingString(HANDLE hContact, const char *szModule, const int DBGetContactSettingString(HANDLE hContact, const char *szModule, const char *szSetting, DBVARIANT *dbv)
{
+#ifdef _DEBUG
return DBGetContactSettingString_Helper(hContact, szModule, szSetting, dbv, __FILE__, __LINE__, DBVT_ASCIIZ);
- //return DBGetContactSettingString_Helper(hContact, szModule, szSetting, dbv, DBVT_ASCIIZ);
-
+#else
+ return DBGetContactSettingString_Helper(hContact, szModule, szSetting, dbv, DBVT_ASCIIZ);
+#endif
}
|