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/HistoryStats/src/main.cpp | 2 -- plugins/HistoryStats/src/mirandahistory.cpp | 2 +- plugins/HistoryStats/src/settingsserializer.cpp | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/HistoryStats') diff --git a/plugins/HistoryStats/src/main.cpp b/plugins/HistoryStats/src/main.cpp index 7f64ab6243..432ae9ce7e 100644 --- a/plugins/HistoryStats/src/main.cpp +++ b/plugins/HistoryStats/src/main.cpp @@ -11,7 +11,6 @@ #include "iconlib.h" #include "dlgconfigure.h" -CLIST_INTERFACE *pcli; HINSTANCE g_hInst; int hLangpack; @@ -402,7 +401,6 @@ extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD) extern "C" __declspec(dllexport) int Load() { mir_getLP(&g_pluginInfoEx); - pcli = Clist_GetInterface(); // init COM, needed for GUID generation CoInitialize(nullptr); diff --git a/plugins/HistoryStats/src/mirandahistory.cpp b/plugins/HistoryStats/src/mirandahistory.cpp index 6caea4fb75..e2488cc4ee 100644 --- a/plugins/HistoryStats/src/mirandahistory.cpp +++ b/plugins/HistoryStats/src/mirandahistory.cpp @@ -66,7 +66,7 @@ void MirandaHistory::readContacts() if (!pProtoName) pProtoName = con::ProtoUnknown; // MEMO: alternative would be "break;" - ext::string curNick = pcli->pfnGetContactDisplayName(hContact, 0); + ext::string curNick = Clist_GetContactDisplayName(hContact); // retrieve protocol const ext::a::string curProtoName = pProtoName; diff --git a/plugins/HistoryStats/src/settingsserializer.cpp b/plugins/HistoryStats/src/settingsserializer.cpp index cb6015eb8a..5696dc73a4 100644 --- a/plugins/HistoryStats/src/settingsserializer.cpp +++ b/plugins/HistoryStats/src/settingsserializer.cpp @@ -17,7 +17,7 @@ void SettingsSerializer::readFromDB() { clearColumns(); - ext::string defaultNick = pcli->pfnGetContactDisplayName(0, 0); + ext::string defaultNick = Clist_GetContactDisplayName(0); SettingsTree settingsTree; // read version tag -- cgit v1.2.3