summaryrefslogtreecommitdiff
path: root/plugins/Weather/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/Weather/src
parent9250a0caadc93ec7a92b99deea151ab7a1c403da (diff)
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/Weather/src')
-rw-r--r--plugins/Weather/src/stdafx.h3
-rw-r--r--plugins/Weather/src/weather.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Weather/src/stdafx.h b/plugins/Weather/src/stdafx.h
index c197c848cf..a33b89e6d3 100644
--- a/plugins/Weather/src/stdafx.h
+++ b/plugins/Weather/src/stdafx.h
@@ -522,5 +522,8 @@ void ReleaseIconEx(HICON hIcon);
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
diff --git a/plugins/Weather/src/weather.cpp b/plugins/Weather/src/weather.cpp
index ae7244b902..30907b648f 100644
--- a/plugins/Weather/src/weather.cpp
+++ b/plugins/Weather/src/weather.cpp
@@ -154,7 +154,7 @@ void InitVar()
ModuleLoaded = FALSE;
}
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
// initialize global variables
InitVar();
@@ -211,7 +211,7 @@ extern "C" int __declspec(dllexport) Load(void)
/////////////////////////////////////////////////////////////////////////////////////////
// unload function
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
DestroyMwin();
DestroyWindow(hPopupWindow);