summaryrefslogtreecommitdiff
path: root/plugins/OpenFolder/src/openFolder.cpp
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/OpenFolder/src/openFolder.cpp
parent9250a0caadc93ec7a92b99deea151ab7a1c403da (diff)
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/OpenFolder/src/openFolder.cpp')
-rw-r--r--plugins/OpenFolder/src/openFolder.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/OpenFolder/src/openFolder.cpp b/plugins/OpenFolder/src/openFolder.cpp
index f1d8c23b9c..cd4b741ea8 100644
--- a/plugins/OpenFolder/src/openFolder.cpp
+++ b/plugins/OpenFolder/src/openFolder.cpp
@@ -3,6 +3,8 @@
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
}
g_plugin;
@@ -78,7 +80,7 @@ HICON LoadIconExEx(const char* IcoLibName, int)
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Load()
+int CMPlugin::Load()
{
CreateServiceFunction(MS_OPENFOLDER_OPEN, MenuCommand_OpenFolder);
@@ -108,10 +110,3 @@ extern "C" int __declspec(dllexport) Load()
return 0;
}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
-extern "C" int __declspec(dllexport) Unload()
-{
- return 0;
-}