From 25ec54ea27a7099f33573b260a620ed7273176fe Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Jun 2013 12:16:44 +0000 Subject: - db_set_blob used everywhere for writing blobs - DBCONTACTWRITESETTING left only in the event handlers git-svn-id: http://svn.miranda-ng.org/main/trunk@5191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/connection.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp index 5dac1643bf..77ed802696 100644 --- a/protocols/Twitter/src/connection.cpp +++ b/protocols/Twitter/src/connection.cpp @@ -43,14 +43,7 @@ inline static T db_pod_get(HANDLE hContact,const char *module,const char *settin template inline static INT_PTR db_pod_set(HANDLE hContact,const char *module,const char *setting,T val) { - DBCONTACTWRITESETTING cws; - - cws.szModule = module; - cws.szSetting = setting; - cws.value.type = DBVT_BLOB; - cws.value.cpbVal = sizeof(T); - cws.value.pbVal = reinterpret_cast(&val); - return CallService(MS_DB_CONTACT_WRITESETTING,(WPARAM)hContact,(LPARAM)&cws); + return db_set_blob(hContact, module, setting, &val, sizeof(T)); } void TwitterProto::SignOn(void*) -- cgit v1.2.3