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/Weather/src/weather.cpp | 3 --- plugins/Weather/src/weather_mwin.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/Weather/src') diff --git a/plugins/Weather/src/weather.cpp b/plugins/Weather/src/weather.cpp index 17894a55e8..ae7244b902 100644 --- a/plugins/Weather/src/weather.cpp +++ b/plugins/Weather/src/weather.cpp @@ -46,7 +46,6 @@ unsigned old_status; UINT_PTR timerId; CMPlugin g_plugin; -CLIST_INTERFACE *pcli; MYOPTIONS opt; @@ -157,8 +156,6 @@ void InitVar() extern "C" int __declspec(dllexport) Load(void) { - pcli = Clist_GetInterface(); - // initialize global variables InitVar(); diff --git a/plugins/Weather/src/weather_mwin.cpp b/plugins/Weather/src/weather_mwin.cpp index 84d652670b..3658fcb89d 100644 --- a/plugins/Weather/src/weather_mwin.cpp +++ b/plugins/Weather/src/weather_mwin.cpp @@ -238,7 +238,7 @@ static void addWindow(MCONTACT hContact) db_free(&dbv); HWND hWnd = CreateWindow(L"WeatherFrame", L"", WS_CHILD | WS_VISIBLE, - 0, 0, 10, 10, pcli->hwndContactList, nullptr, g_plugin.getInst(), (void*)hContact); + 0, 0, 10, 10, g_CLI.hwndContactList, nullptr, g_plugin.getInst(), (void*)hContact); WindowList_Add(hMwinWindowList, hWnd, hContact); CLISTFrame Frame = { 0 }; -- cgit v1.2.3