From de5dce707cc60ace5b92d2ac61914c590cb9680b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 29 Jun 2013 18:16:23 +0000 Subject: rest of unused databases services removed git-svn-id: http://svn.miranda-ng.org/main/trunk@5181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/GTalkExt/src/tipper_items.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'protocols/GTalkExt') diff --git a/protocols/GTalkExt/src/tipper_items.cpp b/protocols/GTalkExt/src/tipper_items.cpp index 77c5e60e95..6dc8a3d6ae 100644 --- a/protocols/GTalkExt/src/tipper_items.cpp +++ b/protocols/GTalkExt/src/tipper_items.cpp @@ -48,21 +48,20 @@ void ShiftTipperSettings(LPSTR buff, int count, LPSTR format) { for (int i = count; i > 0; i--) { DBCONTACTWRITESETTING cws; - DBCONTACTGETSETTING cgs; - cgs.szModule = TIPPER_ITEMS_MOD_NAME; sprintf(buff, format, i - 1); - cgs.szSetting = buff; - cgs.pValue = &cws.value; - if (CallService(MS_DB_CONTACT_GETSETTING, 0, (LPARAM)&cgs)) break; + if (db_get(0, TIPPER_ITEMS_MOD_NAME, buff, &cws.value)) + break; + __try { if (DBVT_ASCIIZ == cws.value.type) { db_free(&cws.value); - cws.value.type = DBVT_WCHAR; - if (CallService(MS_DB_CONTACT_GETSETTING_STR, 0, (LPARAM)&cgs)) break; + if (db_get_ws(0, TIPPER_ITEMS_MOD_NAME, buff, &cws.value)) + break; } - if (CallService(MS_DB_CONTACT_GETSETTING_STR, 0, (LPARAM)&cgs)) break; + if (db_get_s(0, TIPPER_ITEMS_MOD_NAME, buff, &cws.value)) + break; cws.szModule = TIPPER_ITEMS_MOD_NAME; sprintf(buff, format, i); -- cgit v1.2.3