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/FloatingContacts | |
parent | 91b13500b47a51f3a284d9f409b7b8dac167a06d (diff) |
no need to initialize pcli variable in each plugin (only in Clist_*)
Diffstat (limited to 'plugins/FloatingContacts')
-rw-r--r-- | plugins/FloatingContacts/src/main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/FloatingContacts/src/main.cpp b/plugins/FloatingContacts/src/main.cpp index 18cb1d9a7d..03a65a43d1 100644 --- a/plugins/FloatingContacts/src/main.cpp +++ b/plugins/FloatingContacts/src/main.cpp @@ -64,7 +64,6 @@ BOOL bIsCListShow; HGENMENU hMenuItemRemove, hMenuItemHideAll, hMainMenuItemHideAll;
CMPlugin g_plugin;
-CLIST_INTERFACE *pcli;
/////////////////////////////////////////////////////////////////////////////
@@ -868,10 +867,10 @@ static int OnModulesLoded(WPARAM, LPARAM) HookEvent(ME_CLIST_STATUSMODECHANGE, OnStatusModeChange);
HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPrebuildContactMenu);
- hwndMiranda = pcli->hwndContactList;
+ hwndMiranda = g_CLI.hwndContactList;
mir_subclassWindow(hwndMiranda, newMirandaWndProc);
- UINT_PTR dwStyle = SendMessageW(pcli->hwndContactTree, CLM_GETEXSTYLE, 0, 0);
+ UINT_PTR dwStyle = SendMessageW(g_CLI.hwndContactTree, CLM_GETEXSTYLE, 0, 0);
if (dwStyle & CLS_EX_DISABLEDRAGDROP)
MessageBox(hwndMiranda,
TranslateT("Floating contacts plugin won't work until you uncheck the \"Disable drag and drop of items\" option in Options - Contact list"),
@@ -904,8 +903,6 @@ static int OnPreshutdown(WPARAM, LPARAM) extern "C" int __declspec(dllexport) Load()
{
- pcli = Clist_GetInterface();
-
g_plugin.registerIconW(_A2W(MODULE), g_iconList);
LoadMenus();
InitOptions();
|