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/IEView/src/HTMLBuilder.cpp | 2 +- plugins/IEView/src/ieview_main.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/IEView') diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp index 331f640f8e..e9480ded24 100644 --- a/plugins/IEView/src/HTMLBuilder.cpp +++ b/plugins/IEView/src/HTMLBuilder.cpp @@ -255,7 +255,7 @@ void HTMLBuilder::appendEventOld(IEView *view, IEVIEWEVENT *event) db_event_get(hDbEvent, &dbei); if (!(dbei.flags & DBEF_SENT) && (dbei.eventType == EVENTTYPE_MESSAGE || dbei.eventType == EVENTTYPE_URL)) { db_event_markRead(event->hContact, hDbEvent); - pcli->pfnRemoveEvent(event->hContact, hDbEvent); + g_CLI.pfnRemoveEvent(event->hContact, hDbEvent); } if (!isDbEventShown(&dbei)) { diff --git a/plugins/IEView/src/ieview_main.cpp b/plugins/IEView/src/ieview_main.cpp index c3b71b298a..885ab13e6b 100644 --- a/plugins/IEView/src/ieview_main.cpp +++ b/plugins/IEView/src/ieview_main.cpp @@ -20,8 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "stdafx.h" -CLIST_INTERFACE *pcli; - char *workingDirUtf8; CMPlugin g_plugin; @@ -69,8 +67,6 @@ extern "C" int __declspec(dllexport) Load(void) workingDirUtf8 = mir_utf8encodeW(workingDir); delete[] workingDir; - pcli = Clist_GetInterface(); - HookEvent(ME_OPT_INITIALISE, IEViewOptInit); HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); -- cgit v1.2.3