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/MirandaG15/src/CAppletManager.cpp | 2 +- plugins/MirandaG15/src/Miranda.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/MirandaG15/src') diff --git a/plugins/MirandaG15/src/CAppletManager.cpp b/plugins/MirandaG15/src/CAppletManager.cpp index 92b1fe1170..5580aa8c92 100644 --- a/plugins/MirandaG15/src/CAppletManager.cpp +++ b/plugins/MirandaG15/src/CAppletManager.cpp @@ -796,7 +796,7 @@ bool CAppletManager::IsMessageWindowOpen(MCONTACT hContact) void CAppletManager::MarkMessageAsRead(MCONTACT hContact, MEVENT hEvent) { db_event_markRead(hContact, hEvent); - pcli->pfnRemoveEvent(hContact, hEvent); + g_CLI.pfnRemoveEvent(hContact, hEvent); } //************************************************************************ diff --git a/plugins/MirandaG15/src/Miranda.cpp b/plugins/MirandaG15/src/Miranda.cpp index 6333d41c53..90cd6fcede 100644 --- a/plugins/MirandaG15/src/Miranda.cpp +++ b/plugins/MirandaG15/src/Miranda.cpp @@ -59,7 +59,6 @@ bool g_bInitialized; // Plugin Information CMPlugin g_plugin; -CLIST_INTERFACE *pcli; // Function Prototypes int Init(WPARAM, LPARAM); @@ -92,8 +91,6 @@ CMPlugin::CMPlugin() : EXTERN_C int __declspec(dllexport) Load() { - pcli = Clist_GetInterface(); - g_bInitialized = false; InitDebug(); -- cgit v1.2.3