summaryrefslogtreecommitdiff
path: root/plugins/Ping
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/Ping
parent91b13500b47a51f3a284d9f409b7b8dac167a06d (diff)
no need to initialize pcli variable in each plugin (only in Clist_*)
Diffstat (limited to 'plugins/Ping')
-rw-r--r--plugins/Ping/src/ping.cpp3
-rw-r--r--plugins/Ping/src/pingthread.cpp2
-rw-r--r--plugins/Ping/src/utils.cpp2
3 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Ping/src/ping.cpp b/plugins/Ping/src/ping.cpp
index 88b3c2b0a4..99cc6b67e3 100644
--- a/plugins/Ping/src/ping.cpp
+++ b/plugins/Ping/src/ping.cpp
@@ -1,6 +1,5 @@
#include "stdafx.h"
-CLIST_INTERFACE *pcli;
CMPlugin g_plugin;
HNETLIBUSER hNetlibUser = nullptr;
@@ -119,8 +118,6 @@ static IconItem iconList[] =
extern "C" __declspec(dllexport) int Load(void)
{
- pcli = Clist_GetInterface();
-
use_raw_ping = false;
db_set_b(0, MODULENAME, "UsingRawSockets", (BYTE)use_raw_ping);
diff --git a/plugins/Ping/src/pingthread.cpp b/plugins/Ping/src/pingthread.cpp
index b994f24d1a..0abd6c1025 100644
--- a/plugins/Ping/src/pingthread.cpp
+++ b/plugins/Ping/src/pingthread.cpp
@@ -842,7 +842,7 @@ void AttachToClist(bool attach)
void InitList()
{
- hwnd_clist = pcli->hwndContactList;
+ hwnd_clist = g_CLI.hwndContactList;
WNDCLASS wndclass;
diff --git a/plugins/Ping/src/utils.cpp b/plugins/Ping/src/utils.cpp
index 9e4361538e..2e813cd598 100644
--- a/plugins/Ping/src/utils.cpp
+++ b/plugins/Ping/src/utils.cpp
@@ -181,7 +181,7 @@ INT_PTR ToggleEnabled(WPARAM wParam, LPARAM) {
INT_PTR EditContact(WPARAM wParam, LPARAM)
{
PINGLIST pl;
- HWND hwndList = pcli->hwndContactList;
+ HWND hwndList = g_CLI.hwndContactList;
CallService(MODULENAME "/GetPingList", 0, (LPARAM)&pl);
for (pinglist_it i = pl.begin(); i != pl.end(); ++i) {