summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/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/MirandaG15/src
parent9250a0caadc93ec7a92b99deea151ab7a1c403da (diff)
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/MirandaG15/src')
-rw-r--r--plugins/MirandaG15/src/Miranda.cpp4
-rw-r--r--plugins/MirandaG15/src/StdAfx.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MirandaG15/src/Miranda.cpp b/plugins/MirandaG15/src/Miranda.cpp
index 90cd6fcede..cf3a273e92 100644
--- a/plugins/MirandaG15/src/Miranda.cpp
+++ b/plugins/MirandaG15/src/Miranda.cpp
@@ -89,7 +89,7 @@ CMPlugin::CMPlugin() :
// We defer initialization until Miranda's module loading process completed and return 0 to
// mark success, everything else will cause the plugin to be freed right away.
-EXTERN_C int __declspec(dllexport) Load()
+int CMPlugin::Load()
{
g_bInitialized = false;
@@ -103,7 +103,7 @@ EXTERN_C int __declspec(dllexport) Load()
/////////////////////////////////////////////////////////////////////////////////////////
// Called by Miranda when the plugin should unload itself.
-EXTERN_C int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload(void)
{
if(!g_bInitialized) {
TRACE(L"ERROR: Unload requested, but plugin is not initialized?!\n");
diff --git a/plugins/MirandaG15/src/StdAfx.h b/plugins/MirandaG15/src/StdAfx.h
index 632b5288fe..29978e1e66 100644
--- a/plugins/MirandaG15/src/StdAfx.h
+++ b/plugins/MirandaG15/src/StdAfx.h
@@ -38,6 +38,9 @@ using namespace std;
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
#include "LCDFramework/LCDFramework.h"