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/Nudge/src/main.cpp | 4 ++-- plugins/Nudge/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/Nudge/src') diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index b74ec95f5b..e9c5640131 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -473,7 +473,7 @@ static int AccListChanged(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { LoadIcons(); @@ -512,7 +512,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { arNudges.destroy(); return 0; diff --git a/plugins/Nudge/src/stdafx.h b/plugins/Nudge/src/stdafx.h index 17f4503308..7216df9ab0 100644 --- a/plugins/Nudge/src/stdafx.h +++ b/plugins/Nudge/src/stdafx.h @@ -77,6 +77,9 @@ void AutoResendNudge(void *wParam) ; struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; extern int nProtocol; -- cgit v1.2.3