summaryrefslogtreecommitdiff
path: root/plugins/MagneticWindows/src/MagneticWindows.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-23 23:29:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-23 23:29:25 +0300
commit176e52e14fd0358a7f26ca8d7b0205244dfde2e7 (patch)
tree10da2f8951d20103af0215c38d07ea96ba61c191 /plugins/MagneticWindows/src/MagneticWindows.cpp
parent91b13500b47a51f3a284d9f409b7b8dac167a06d (diff)
no need to initialize pcli variable in each plugin (only in Clist_*)
Diffstat (limited to 'plugins/MagneticWindows/src/MagneticWindows.cpp')
-rw-r--r--plugins/MagneticWindows/src/MagneticWindows.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/MagneticWindows/src/MagneticWindows.cpp b/plugins/MagneticWindows/src/MagneticWindows.cpp
index ddb16b00b9..c8b23c3615 100644
--- a/plugins/MagneticWindows/src/MagneticWindows.cpp
+++ b/plugins/MagneticWindows/src/MagneticWindows.cpp
@@ -13,7 +13,6 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
CMPlugin g_plugin;
-CLIST_INTERFACE *pcli;
///////////////////////////////////////////////////////////////////////////////////////////////////
// Variables
@@ -92,7 +91,7 @@ int SnapPluginStart(WPARAM, LPARAM)
HookEvent(ME_MSG_WINDOWEVENT, PluginMessageWindowEvent);
- WindowOpen(pcli->hwndContactList);
+ WindowOpen(g_CLI.hwndContactList);
return 0;
}
@@ -109,8 +108,6 @@ int SnapPluginShutDown(WPARAM, LPARAM)
extern "C" int __declspec(dllexport) Load()
{
- pcli = Clist_GetInterface();
-
HookEvent(ME_SYSTEM_MODULESLOADED, SnapPluginStart);
HookEvent(ME_SYSTEM_PRESHUTDOWN, SnapPluginShutDown);
HookEvent(ME_OPT_INITIALISE, InitOptions);