summaryrefslogtreecommitdiff
path: root/plugins/ContactsPlus/src
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/ContactsPlus/src
parent91b13500b47a51f3a284d9f409b7b8dac167a06d (diff)
no need to initialize pcli variable in each plugin (only in Clist_*)
Diffstat (limited to 'plugins/ContactsPlus/src')
-rw-r--r--plugins/ContactsPlus/src/main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/ContactsPlus/src/main.cpp b/plugins/ContactsPlus/src/main.cpp
index 26f21e9449..f733a32177 100644
--- a/plugins/ContactsPlus/src/main.cpp
+++ b/plugins/ContactsPlus/src/main.cpp
@@ -23,8 +23,6 @@
#include "stdafx.h"
-CLIST_INTERFACE *pcli;
-
CMPlugin g_plugin;
int g_Utf8EventsSupported = TRUE;
@@ -82,7 +80,7 @@ static int HookDBEventAdded(WPARAM hContact, LPARAM hDbEvent)
cle.pszService = MS_CONTACTS_RECEIVE;
cle.szTooltip.w = caToolTip;
cle.flags |= CLEF_UNICODE;
- pcli->pfnAddEvent(&cle);
+ g_CLI.pfnAddEvent(&cle);
}
return 0; //continue processing by other hooks
}
@@ -194,8 +192,6 @@ static INT_PTR ServiceReceiveCommand(WPARAM, LPARAM lParam)
extern "C" __declspec(dllexport) int Load(void)
{
- pcli = Clist_GetInterface();
-
InitCommonControls();
g_hSendWindowList = WindowList_Create();