summaryrefslogtreecommitdiff
path: root/plugins/WebView/src/webview_datawnd.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-14 15:57:47 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-14 15:57:47 +0300
commita6b9f6570b4cb4a425f91d4694e6b027f12cc8b7 (patch)
tree86960597fbdc0025b12c4e87b8b536dd3d9910fb /plugins/WebView/src/webview_datawnd.cpp
parent28b81bbed5d8db354349fd787c3db4123e55d423 (diff)
hContact, MODULENAME -> g_plugin
Diffstat (limited to 'plugins/WebView/src/webview_datawnd.cpp')
-rw-r--r--plugins/WebView/src/webview_datawnd.cpp8
1 files changed, 4 insertions, 4 deletions
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");
}