summaryrefslogtreecommitdiff
path: root/plugins/Variables/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-28 22:38:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-28 22:39:22 +0300
commitca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d (patch)
tree2fc218f22e6fb28baa5b5efc02ab652daae97d73 /plugins/Variables/src
parent9250a0caadc93ec7a92b99deea151ab7a1c403da (diff)
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/Variables/src')
-rw-r--r--plugins/Variables/src/main.cpp4
-rw-r--r--plugins/Variables/src/stdafx.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Variables/src/main.cpp b/plugins/Variables/src/main.cpp
index bd65f18915..4bfff0a42d 100644
--- a/plugins/Variables/src/main.cpp
+++ b/plugins/Variables/src/main.cpp
@@ -45,7 +45,7 @@ CMPlugin::CMPlugin() :
/////////////////////////////////////////////////////////////////////////////////////////
// Load - plugin's entry point
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
LoadVarModule();
return 0;
@@ -54,7 +54,7 @@ extern "C" int __declspec(dllexport) Load(void)
/////////////////////////////////////////////////////////////////////////////////////////
// Unload - destroys plugin from memory
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
UnloadVarModule();
return 0;
diff --git a/plugins/Variables/src/stdafx.h b/plugins/Variables/src/stdafx.h
index d4514659a7..ee25d7bdbd 100644
--- a/plugins/Variables/src/stdafx.h
+++ b/plugins/Variables/src/stdafx.h
@@ -73,6 +73,9 @@
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
#define SETTING_STARTUPTEXT "StartupText"