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/Db_autobackups/src/main.cpp | 12 +----------- plugins/Db_autobackups/src/stdafx.h | 2 ++ 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'plugins/Db_autobackups') diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp index 4c38a8793d..4c52633c9e 100644 --- a/plugins/Db_autobackups/src/main.cpp +++ b/plugins/Db_autobackups/src/main.cpp @@ -110,7 +110,7 @@ static int PreShutdown(WPARAM, LPARAM) return 0; } -extern "C" __declspec(dllexport) int Load(void) +int CMPlugin::Load() { Miranda_GetVersionText(g_szMirVer, sizeof(g_szMirVer)); @@ -125,15 +125,5 @@ extern "C" __declspec(dllexport) int Load(void) HookEvent(ME_OPT_INITIALISE, OptionsInit); SetBackupTimer(); - return 0; } - -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" __declspec(dllexport) int Unload(void) -{ - return 0; -} - - diff --git a/plugins/Db_autobackups/src/stdafx.h b/plugins/Db_autobackups/src/stdafx.h index e6acf25c7b..b0229f1e35 100644 --- a/plugins/Db_autobackups/src/stdafx.h +++ b/plugins/Db_autobackups/src/stdafx.h @@ -30,6 +30,8 @@ namespace fs = std::experimental::filesystem; struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; }; #include "options.h" -- cgit v1.2.3