diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-05 22:10:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-05 22:10:25 +0300 |
commit | 35e2289786a7f1542573d1a58ebc971970ea981c (patch) | |
tree | da8887c793611fdbf6072fd477fd8c01c60b8b02 /plugins/Variables/src | |
parent | f7c00d6dc53774d16b9721e79ed5d4017af63884 (diff) |
CLIST_INTERFACE::pfnGetContactDisplayName => Clist_GetContactDisplayName
Diffstat (limited to 'plugins/Variables/src')
-rw-r--r-- | plugins/Variables/src/main.cpp | 2 | ||||
-rw-r--r-- | plugins/Variables/src/parse_miranda.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
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);
}
|