From 44775ea68f894c3e236cdc397d6b0856c5882143 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 22 Jul 2013 17:54:52 +0000 Subject: replace sprintf to mir_snprintf (part 2) git-svn-id: http://svn.miranda-ng.org/main/trunk@5447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ClientChangeNotify/src/CommonLibs/CString.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'plugins/ClientChangeNotify/src') diff --git a/plugins/ClientChangeNotify/src/CommonLibs/CString.cpp b/plugins/ClientChangeNotify/src/CommonLibs/CString.cpp index b36076eec8..a874b75721 100644 --- a/plugins/ClientChangeNotify/src/CommonLibs/CString.cpp +++ b/plugins/ClientChangeNotify/src/CommonLibs/CString.cpp @@ -268,24 +268,10 @@ TString& TString::operator = (const T *pStr) return *this; } - -/*TCString& TCString::Format(char *pszFormat, ...) -{ - va_list argList; - va_start(argList, pszFormat); - int StrLen = _vscprintf(pszFormat, argList); // it's stupidity. in some versions of msvcrt.dll there's no _vscprintf function, so there's no any way to determine needed string length. so actually I can't use _vsnprintf too. - _vsnprintf(GetBuffer(StrLen), StrLen, pszFormat, argList); - ReleaseBuffer(StrLen); - va_end(argList); - return *this; -} -*/ - template class TString; template class TString; template class TString; - CString db_get_s(HANDLE hContact, const char *szModule, const char *szSetting, const char *szDefaultValue) { ptrA p( db_get_sa(hContact, szModule, szSetting)); -- cgit v1.2.3