From aa4076ff72097fd65a6c8a2369749afee6adf034 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 20 Jul 2012 09:14:13 +0000 Subject: minor fixes here & there git-svn-id: http://svn.miranda-ng.org/main/trunk@1069 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CommonLibs/CString.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/CommonLibs') diff --git a/plugins/CommonLibs/CString.cpp b/plugins/CommonLibs/CString.cpp index c78d9e25b0..fb8760dc74 100644 --- a/plugins/CommonLibs/CString.cpp +++ b/plugins/CommonLibs/CString.cpp @@ -82,7 +82,7 @@ void TString::SetAllocSize(int nNewAllocSize) if (pBuf) { memcpy(pNewBuf, pBuf, sizeof(T) * min(nBufSize, nNewAllocSize)); - //HeapFree(GetProcessHeap(), 0, pBuf); + //HeapFree(GetProcessHeap(), 0, pBuf); free(pBuf); } pBuf = pNewBuf; @@ -177,7 +177,7 @@ TString& TString::Replace(int nIndex, int nCount, const T *szReplaceBy) { return *this; } - + TString 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,11 +339,7 @@ TCString DBGetContactSettingString(HANDLE hContact, const char *szModule, const int DBGetContactSettingString(HANDLE hContact, const char *szModule, const char *szSetting, DBVARIANT *dbv) { -#ifdef _DEBUG - return db_get_s(hContact, szModule, szSetting, dbv, DBVT_ASCIIZ); -#else return db_get_s(hContact, szModule, szSetting, dbv, DBVT_ASCIIZ); -#endif } -- cgit v1.2.3