From 176e52e14fd0358a7f26ca8d7b0205244dfde2e7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 May 2018 23:29:25 +0300 Subject: no need to initialize pcli variable in each plugin (only in Clist_*) --- plugins/ContactsPlus/src/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/ContactsPlus/src') 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(); -- cgit v1.2.3