From 35e2289786a7f1542573d1a58ebc971970ea981c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 5 Apr 2018 22:10:25 +0300 Subject: CLIST_INTERFACE::pfnGetContactDisplayName => Clist_GetContactDisplayName --- plugins/Variables/src/main.cpp | 2 -- plugins/Variables/src/parse_miranda.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/Variables') diff --git a/plugins/Variables/src/main.cpp b/plugins/Variables/src/main.cpp index 3ddf6b707c..b7195bcc6d 100644 --- a/plugins/Variables/src/main.cpp +++ b/plugins/Variables/src/main.cpp @@ -18,7 +18,6 @@ */ #include "stdafx.h" -CLIST_INTERFACE *pcli; HINSTANCE hInst; int hLangpack = 0; @@ -56,7 +55,6 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) extern "C" int __declspec(dllexport) Load(void) { mir_getLP(&pluginInfoEx); - pcli = Clist_GetInterface(); LoadVarModule(); return 0; diff --git a/plugins/Variables/src/parse_miranda.cpp b/plugins/Variables/src/parse_miranda.cpp index d272620528..70c69418b5 100644 --- a/plugins/Variables/src/parse_miranda.cpp +++ b/plugins/Variables/src/parse_miranda.cpp @@ -605,7 +605,7 @@ static wchar_t *parseContactNameString(ARGUMENTSINFO *ai) return nullptr; ai->flags |= AIF_DONTPARSE; - wchar_t *ret = (wchar_t*)pcli->pfnGetContactDisplayName(ai->fi->hContact, 0); + wchar_t *ret = Clist_GetContactDisplayName(ai->fi->hContact); return (ret == nullptr) ? nullptr : mir_wstrdup(ret); } -- cgit v1.2.3