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/IEHistory/src/IEHistory.cpp | 4 ++-- plugins/IEHistory/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/IEHistory/src') diff --git a/plugins/IEHistory/src/IEHistory.cpp b/plugins/IEHistory/src/IEHistory.cpp index 2e46085c64..9b73741e82 100644 --- a/plugins/IEHistory/src/IEHistory.cpp +++ b/plugins/IEHistory/src/IEHistory.cpp @@ -55,7 +55,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_UIHIST ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { INITCOMMONCONTROLSEX icex; icex.dwSize = sizeof(icex); @@ -92,7 +92,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload() +int CMPlugin::Unload() { WindowList_Broadcast(hOpenWindowsList, WM_CLOSE, 0, 0); WindowList_Destroy(hOpenWindowsList); diff --git a/plugins/IEHistory/src/stdafx.h b/plugins/IEHistory/src/stdafx.h index 2ab6a12c79..f073c987a4 100644 --- a/plugins/IEHistory/src/stdafx.h +++ b/plugins/IEHistory/src/stdafx.h @@ -75,6 +75,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; extern HICON hIcon; //history icon -- cgit v1.2.3