From 53fe3e46177d17b4941610de19f5cc6210700cb4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Nov 2018 21:44:56 +0300 Subject: db_* functions replaced with g_plugin calls --- protocols/IcqOscarJ/src/fam_01service.cpp | 2 +- protocols/IcqOscarJ/src/icq_servlist.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/IcqOscarJ') diff --git a/protocols/IcqOscarJ/src/fam_01service.cpp b/protocols/IcqOscarJ/src/fam_01service.cpp index 01c917c998..e9a1048e8a 100644 --- a/protocols/IcqOscarJ/src/fam_01service.cpp +++ b/protocols/IcqOscarJ/src/fam_01service.cpp @@ -597,7 +597,7 @@ void CIcqProto::setUserInfo() //MIM/PackName bool bHasPackName = false; DBVARIANT dbv; - if (!db_get_s(NULL, "ICQCaps", "PackName", &dbv)) { + if (!db_get_s(0, "ICQCaps", "PackName", &dbv)) { //MIM/PackName bHasPackName = true; wAdditionalData += 16; diff --git a/protocols/IcqOscarJ/src/icq_servlist.cpp b/protocols/IcqOscarJ/src/icq_servlist.cpp index 14a64f5bc3..62f45998ee 100644 --- a/protocols/IcqOscarJ/src/icq_servlist.cpp +++ b/protocols/IcqOscarJ/src/icq_servlist.cpp @@ -1242,7 +1242,7 @@ void* CIcqProto::collectGroups(int *count) static int GroupLinksEnumProc(const char *szSetting, void *lParam) { // check link target, add if match - if (db_get_w(NULL, ((char**)lParam)[2], szSetting, 0) == (WORD)((char**)lParam)[1]) { + if (db_get_w(0, ((char**)lParam)[2], szSetting, 0) == (WORD)((char**)lParam)[1]) { char** block = (char**)SAFE_MALLOC(2 * sizeof(char*)); block[1] = null_strdup(szSetting); block[0] = ((char**)lParam)[0]; @@ -1325,7 +1325,7 @@ WORD CIcqProto::getServListGroupLinkID(const char *szPath) char szModule[MAX_PATH]; mir_snprintf(szModule, "%sGroups", m_szModuleName); - WORD wGroupId = db_get_w(NULL, szModule, szPath, 0); + WORD wGroupId = db_get_w(0, szModule, szPath, 0); if (wGroupId && !CheckServerID(wGroupId, 0)) { // known, check if still valid, if not remove debugLogA("Removing group \"%s\" from cache...", szPath); @@ -1342,7 +1342,7 @@ void CIcqProto::setServListGroupLinkID(const char *szPath, WORD wGroupID) mir_snprintf(szModule, "%sGroups", m_szModuleName); if (wGroupID) - db_set_w(NULL, szModule, szPath, wGroupID); + db_set_w(0, szModule, szPath, wGroupID); else db_unset(NULL, szModule, szPath); } -- cgit v1.2.3