From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- plugins/WebView/src/main.cpp | 4 ++-- plugins/WebView/src/webview.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/WebView/src') diff --git a/plugins/WebView/src/main.cpp b/plugins/WebView/src/main.cpp index 91778dffe2..2c7d70ec58 100644 --- a/plugins/WebView/src/main.cpp +++ b/plugins/WebView/src/main.cpp @@ -91,7 +91,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Load() +int CMPlugin::Load() { HookEvent(ME_CLIST_DOUBLECLICKED, Doubleclick); @@ -251,7 +251,7 @@ extern "C" int __declspec(dllexport) Load() ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { ChangeContactStatus(0); diff --git a/plugins/WebView/src/webview.h b/plugins/WebView/src/webview.h index fce570cdb1..ad69459257 100644 --- a/plugins/WebView/src/webview.h +++ b/plugins/WebView/src/webview.h @@ -247,4 +247,7 @@ extern HANDLE hHookAlertOSD; struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; -- cgit v1.2.3