summaryrefslogtreecommitdiff
path: root/plugins/CommonLibs
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-20 09:14:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-20 09:14:13 +0000
commitaa4076ff72097fd65a6c8a2369749afee6adf034 (patch)
tree7ea7e8478a1fedf19d1d7e48f39d28839dad6ddb /plugins/CommonLibs
parent59b00feb310240a3ac5a140ee3dd519c520c69b3 (diff)
minor fixes here & there
git-svn-id: http://svn.miranda-ng.org/main/trunk@1069 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CommonLibs')
-rw-r--r--plugins/CommonLibs/CString.cpp8
1 files changed, 2 insertions, 6 deletions
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<T>::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<T>& TString<T>::Replace(int nIndex, int nCount, const T *szReplaceBy)
{
return *this;
}
-
+
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,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
}