summaryrefslogtreecommitdiff
path: root/plugins/MirOTR
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-05 22:10:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-05 22:10:25 +0300
commit35e2289786a7f1542573d1a58ebc971970ea981c (patch)
treeda8887c793611fdbf6072fd477fd8c01c60b8b02 /plugins/MirOTR
parentf7c00d6dc53774d16b9721e79ed5d4017af63884 (diff)
CLIST_INTERFACE::pfnGetContactDisplayName => Clist_GetContactDisplayName
Diffstat (limited to 'plugins/MirOTR')
-rw-r--r--plugins/MirOTR/src/dllmain.cpp2
-rw-r--r--plugins/MirOTR/src/utils.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/plugins/MirOTR/src/dllmain.cpp b/plugins/MirOTR/src/dllmain.cpp
index f3bc0c756c..16ff5afaa8 100644
--- a/plugins/MirOTR/src/dllmain.cpp
+++ b/plugins/MirOTR/src/dllmain.cpp
@@ -1,7 +1,6 @@
// dllmain.cpp : Definiert den Einstiegspunkt für die DLL-Anwendung.
#include "stdafx.h"
-CLIST_INTERFACE *pcli;
HANDLE hEventWindow;
HINSTANCE hInst;
@@ -60,7 +59,6 @@ extern "C" __declspec(dllexport) int Load(void)
DEBUGOUTA("LOAD MIROTR");
mir_getLP(&pluginInfo);
- pcli = Clist_GetInterface();
InitIcons();
diff --git a/plugins/MirOTR/src/utils.cpp b/plugins/MirOTR/src/utils.cpp
index acad664c75..a89ef8121f 100644
--- a/plugins/MirOTR/src/utils.cpp
+++ b/plugins/MirOTR/src/utils.cpp
@@ -94,13 +94,13 @@ char* contact_get_id(MCONTACT hContact, bool bNameOnError)
{
ptrW pszUniqueID(Contact_GetInfo(CNF_UNIQUEID, hContact));
if (!pszUniqueID && bNameOnError)
- pszUniqueID = mir_wstrdup(pcli->pfnGetContactDisplayName(hContact, 0));
+ pszUniqueID = mir_wstrdup(Clist_GetContactDisplayName(hContact));
return mir_u2a(pszUniqueID);
}
__inline const wchar_t* contact_get_nameT(MCONTACT hContact) {
- return pcli->pfnGetContactDisplayName(hContact, 0);
+ return Clist_GetContactDisplayName(hContact);
}
wchar_t* ProtoGetNickname(const char* proto)