summaryrefslogtreecommitdiff
path: root/plugins/FloatingContacts/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/FloatingContacts/src
parent9250a0caadc93ec7a92b99deea151ab7a1c403da (diff)
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/FloatingContacts/src')
-rw-r--r--plugins/FloatingContacts/src/main.cpp4
-rw-r--r--plugins/FloatingContacts/src/stdafx.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/FloatingContacts/src/main.cpp b/plugins/FloatingContacts/src/main.cpp
index 99ab507a73..9226ad8fb9 100644
--- a/plugins/FloatingContacts/src/main.cpp
+++ b/plugins/FloatingContacts/src/main.cpp
@@ -901,7 +901,7 @@ static int OnPreshutdown(WPARAM, LPARAM)
return 0;
}
-extern "C" int __declspec(dllexport) Load()
+int CMPlugin::Load()
{
g_plugin.registerIconW(_A2W(MODULE), g_iconList);
LoadMenus();
@@ -927,7 +927,7 @@ extern "C" int __declspec(dllexport) Load()
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Unload()
+int CMPlugin::Unload()
{
if (hLTEdgesPen)
DeleteObject(hLTEdgesPen);
diff --git a/plugins/FloatingContacts/src/stdafx.h b/plugins/FloatingContacts/src/stdafx.h
index 532c1d94df..253215ba86 100644
--- a/plugins/FloatingContacts/src/stdafx.h
+++ b/plugins/FloatingContacts/src/stdafx.h
@@ -37,6 +37,9 @@
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
#endif // #ifndef __STDHDR_H__