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/PasteIt/src/PasteIt.cpp | 4 ++-- plugins/PasteIt/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/PasteIt/src') diff --git a/plugins/PasteIt/src/PasteIt.cpp b/plugins/PasteIt/src/PasteIt.cpp index a56a46d15e..4e48b1aabf 100644 --- a/plugins/PasteIt/src/PasteIt.cpp +++ b/plugins/PasteIt/src/PasteIt.cpp @@ -346,7 +346,7 @@ static int ModulesLoaded(WPARAM, LPARAM) return 0; } -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { g_plugin.registerIcon(LPGEN("Paste It"), iconList); @@ -374,7 +374,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { UnhookEvent(hModulesLoaded); UnhookEvent(hPrebuildContactMenu); diff --git a/plugins/PasteIt/src/stdafx.h b/plugins/PasteIt/src/stdafx.h index 347e4e0dff..e747eb8f97 100644 --- a/plugins/PasteIt/src/stdafx.h +++ b/plugins/PasteIt/src/stdafx.h @@ -43,4 +43,7 @@ extern PasteToWeb* pasteToWebs[PasteToWeb::pages]; struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; -- cgit v1.2.3