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/SmileyAdd/src/main.cpp | 4 ++-- plugins/SmileyAdd/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp index 276b6f6d3a..409e5bb81a 100644 --- a/plugins/SmileyAdd/src/main.cpp +++ b/plugins/SmileyAdd/src/main.cpp @@ -85,7 +85,7 @@ static int MirandaShutdown(WPARAM, LPARAM) return 0; } -extern "C" __declspec(dllexport) int Load(void) +int CMPlugin::Load() { if (ServiceExists(MS_SMILEYADD_REPLACESMILEYS)) { ReportError(TranslateT("Only one instance of SmileyAdd could be executed.\nRemove duplicate instances from 'Plugins' directory")); @@ -130,7 +130,7 @@ extern "C" __declspec(dllexport) int Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Unload(void) +int CMPlugin::Unload() { RemoveDialogBoxHook(); diff --git a/plugins/SmileyAdd/src/stdafx.h b/plugins/SmileyAdd/src/stdafx.h index fa7c936f8b..4e8e07dd10 100644 --- a/plugins/SmileyAdd/src/stdafx.h +++ b/plugins/SmileyAdd/src/stdafx.h @@ -99,6 +99,9 @@ extern LIST menuHandleArray; struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; #define DM_REMAKELOG (WM_USER + 11) -- cgit v1.2.3