From a6b9f6570b4cb4a425f91d4694e6b027f12cc8b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Nov 2018 15:57:47 +0300 Subject: hContact, MODULENAME -> g_plugin --- plugins/WebView/src/webview_datawnd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/WebView/src/webview_datawnd.cpp') diff --git a/plugins/WebView/src/webview_datawnd.cpp b/plugins/WebView/src/webview_datawnd.cpp index ae30c5d20f..fba496f197 100644 --- a/plugins/WebView/src/webview_datawnd.cpp +++ b/plugins/WebView/src/webview_datawnd.cpp @@ -129,8 +129,8 @@ static MCONTACT FindContactByUrl(HWND hwndDlg) GetWindowText(hwndDlg, titlebartxt, _countof(titlebartxt)); for (auto &hContact : Contacts(MODULENAME)) { - ptrW db1( db_get_wsa(hContact, MODULENAME, URL_KEY)); - ptrW db2( db_get_wsa(hContact, MODULENAME, PRESERVE_NAME_KEY)); + ptrW db1( g_plugin.getWStringA(hContact, URL_KEY)); + ptrW db2( g_plugin.getWStringA(hContact, PRESERVE_NAME_KEY)); if (!mir_wstrcmp(urltext, db1) && !mir_wstrcmp(titlebartxt, db2)) { contactcount++; @@ -351,7 +351,7 @@ INT_PTR CALLBACK DlgProcDisplayData(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA case IDC_STOP: if (hContact = FindContactByUrl(hwndDlg)) - db_set_b(hContact, MODULENAME, STOP_KEY, 1); + g_plugin.setByte(hContact, STOP_KEY, 1); break; case IDC_STICK_BUTTON: @@ -360,7 +360,7 @@ INT_PTR CALLBACK DlgProcDisplayData(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA { wchar_t *ptszToolTip; HWND hTopmost; - if (!db_get_b(hContact, MODULENAME, ON_TOP_KEY, 0)) { + if (!g_plugin.getByte(hContact, ON_TOP_KEY, 0)) { hTopmost = HWND_NOTOPMOST; ptszToolTip = TranslateT("Stick to the front"); } -- cgit v1.2.3