diff options
Diffstat (limited to 'plugins/NewAwaySysMod/CommonLibs/CString.cpp')
-rw-r--r-- | plugins/NewAwaySysMod/CommonLibs/CString.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewAwaySysMod/CommonLibs/CString.cpp b/plugins/NewAwaySysMod/CommonLibs/CString.cpp index de3b1a3297..a021132b14 100644 --- a/plugins/NewAwaySysMod/CommonLibs/CString.cpp +++ b/plugins/NewAwaySysMod/CommonLibs/CString.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-//#include <stdio.h>
+#define _CRT_SECURE_NO_WARNINGS
#include "CString.h"
#define STR_GROWBY 64
@@ -158,7 +158,7 @@ TString<T>& TString<T>::Replace(const T *szFind, const T *szReplaceBy) 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
- while (p = My_strstr(pCurPos, szFind))
+ while (p = ( T* )My_strstr(pCurPos, szFind))
{
Result.DiffCat(pCurPos, p);
Result += szReplaceBy;
@@ -339,8 +339,8 @@ TCString DBGetContactSettingString(HANDLE hContact, const char *szModule, const int DBGetContactSettingString(HANDLE hContact, const char *szModule, const char *szSetting, DBVARIANT *dbv)
{
- //return DBGetContactSettingString_Helper(hContact, szModule, szSetting, dbv, __FILE__, __LINE__, DBVT_ASCIIZ);
- return DBGetContactSettingString_Helper(hContact, szModule, szSetting, dbv, DBVT_ASCIIZ);
+ return DBGetContactSettingString_Helper(hContact, szModule, szSetting, dbv, __FILE__, __LINE__, DBVT_ASCIIZ);
+ //return DBGetContactSettingString_Helper(hContact, szModule, szSetting, dbv, DBVT_ASCIIZ);
}
|