summaryrefslogtreecommitdiff
path: root/plugins/AsSingleWindow/src/AsSingleWindow.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/AsSingleWindow/src/AsSingleWindow.cpp
parent91b13500b47a51f3a284d9f409b7b8dac167a06d (diff)
no need to initialize pcli variable in each plugin (only in Clist_*)
Diffstat (limited to 'plugins/AsSingleWindow/src/AsSingleWindow.cpp')
-rw-r--r--plugins/AsSingleWindow/src/AsSingleWindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/AsSingleWindow/src/AsSingleWindow.cpp b/plugins/AsSingleWindow/src/AsSingleWindow.cpp
index 2c3fab8b98..4c0a8a1cce 100644
--- a/plugins/AsSingleWindow/src/AsSingleWindow.cpp
+++ b/plugins/AsSingleWindow/src/AsSingleWindow.cpp
@@ -7,7 +7,6 @@
sPluginVars pluginVars;
CMPlugin g_plugin;
-CLIST_INTERFACE *pcli;
/////////////////////////////////////////////////////////////////////////////////////////
@@ -49,7 +48,7 @@ static int MsgWindowEvent(WPARAM, LPARAM lParam)
static int OnModulesLoaded(WPARAM, LPARAM)
{
- windowAdd(pcli->hwndContactList, true);
+ windowAdd(g_CLI.hwndContactList, true);
HookEvent(ME_MSG_WINDOWEVENT, MsgWindowEvent);
@@ -66,8 +65,6 @@ static int OnShutdown(WPARAM, LPARAM)
extern "C" __declspec(dllexport) int Load(void)
{
- pcli = Clist_GetInterface();
-
::InitializeCriticalSection(&pluginVars.m_CS);
pluginVars.IsUpdateInProgress = false;
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);