summaryrefslogtreecommitdiff
path: root/plugins/FileAsMessage
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/FileAsMessage
parent9250a0caadc93ec7a92b99deea151ab7a1c403da (diff)
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/FileAsMessage')
-rw-r--r--plugins/FileAsMessage/src/main.cpp4
-rw-r--r--plugins/FileAsMessage/src/stdafx.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/FileAsMessage/src/main.cpp b/plugins/FileAsMessage/src/main.cpp
index f6ffd068d2..3815e347e5 100644
--- a/plugins/FileAsMessage/src/main.cpp
+++ b/plugins/FileAsMessage/src/main.cpp
@@ -183,7 +183,7 @@ static int OnModulesLoaded(WPARAM, LPARAM)
return 0;
}
-extern "C" __declspec(dllexport) int Load(void)
+int CMPlugin::Load()
{
InitCRC32();
@@ -209,7 +209,7 @@ extern "C" __declspec(dllexport) int Load(void)
// Unload()
// Called by Miranda when Plugin is unloaded.
//
-extern "C" __declspec(dllexport) int Unload(void)
+int CMPlugin::Unload()
{
WindowList_Destroy(hFileList);
if (hHookSkinIconsChanged != nullptr)
diff --git a/plugins/FileAsMessage/src/stdafx.h b/plugins/FileAsMessage/src/stdafx.h
index 3cc13e9f15..7020a88dab 100644
--- a/plugins/FileAsMessage/src/stdafx.h
+++ b/plugins/FileAsMessage/src/stdafx.h
@@ -36,6 +36,9 @@
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
extern char *szServiceTitle;