diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-23 23:29:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-23 23:29:25 +0300 |
commit | 176e52e14fd0358a7f26ca8d7b0205244dfde2e7 (patch) | |
tree | 10da2f8951d20103af0215c38d07ea96ba61c191 /plugins/MagneticWindows | |
parent | 91b13500b47a51f3a284d9f409b7b8dac167a06d (diff) |
no need to initialize pcli variable in each plugin (only in Clist_*)
Diffstat (limited to 'plugins/MagneticWindows')
-rw-r--r-- | plugins/MagneticWindows/src/MagneticWindows.cpp | 5 | ||||
-rw-r--r-- | plugins/MagneticWindows/src/SnapToListService.cpp | 2 |
2 files changed, 2 insertions, 5 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); diff --git a/plugins/MagneticWindows/src/SnapToListService.cpp b/plugins/MagneticWindows/src/SnapToListService.cpp index 779e733827..143daf12df 100644 --- a/plugins/MagneticWindows/src/SnapToListService.cpp +++ b/plugins/MagneticWindows/src/SnapToListService.cpp @@ -3,7 +3,7 @@ INT_PTR SnapToList(WPARAM wParam, LPARAM Align) { HWND hWnd = (HWND)wParam; - HWND hWndList = pcli->hwndContactList; + HWND hWndList = g_CLI.hwndContactList; RECT WndRect, ListRect; GetWindowRect(hWnd, &WndRect); |