From f632783f27da5dd0ed3513bbee6182ea8af30afe Mon Sep 17 00:00:00 2001 From: Mataes Date: Sat, 17 Mar 2018 21:41:50 +0300 Subject: FTPFile: replace mir_strcpy and mir_wstrcpy --- plugins/FTPFileYM/src/mir_db.cpp | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'plugins/FTPFileYM/src/mir_db.cpp') diff --git a/plugins/FTPFileYM/src/mir_db.cpp b/plugins/FTPFileYM/src/mir_db.cpp index e7c693585a..fcd6d35cc7 100644 --- a/plugins/FTPFileYM/src/mir_db.cpp +++ b/plugins/FTPFileYM/src/mir_db.cpp @@ -74,46 +74,6 @@ int DB::getDwordF(MCONTACT hContact, char *szModule, char *szSetting, int id, in return db_get_dw(hContact, szModule, formSet, iErrorValue); } -int DB::getAString(MCONTACT hContact, char *szModule, char *szSetting, char *buff) -{ - DBVARIANT dbv; - if (!db_get_s(hContact, szModule, szSetting, &dbv)) { - mir_strcpy(buff, dbv.pszVal); - db_free(&dbv); - return 0; - } - - buff[0] = 0; - return 1; -} - -int DB::getAStringF(MCONTACT hContact, char *szModule, char *szSetting, int id, char *buff) -{ - char formSet[256]; - mir_snprintf(formSet, szSetting, id); - return getAString(hContact, szModule, formSet, buff); -} - -int DB::getString(MCONTACT hContact, char *szModule, char *szSetting, wchar_t *buff) -{ - DBVARIANT dbv; - if (!db_get_ws(hContact, szModule, szSetting, &dbv)) { - mir_wstrcpy(buff, dbv.ptszVal); - db_free(&dbv); - return 0; - } - - buff[0] = 0; - return 1; -} - -int DB::getStringF(MCONTACT hContact, char *szModule, char *szSetting, int id, wchar_t *buff) -{ - char formSet[256]; - mir_snprintf(formSet, szSetting, id); - return getString(hContact, szModule, formSet, buff); -} - int DB::deleteSettingF(MCONTACT hContact, char *szModule, char *szSetting, int id) { char formSet[256]; -- cgit v1.2.3