From 3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Dec 2019 16:08:03 +0300 Subject: GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName --- plugins/QuickContacts/src/dialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/QuickContacts') diff --git a/plugins/QuickContacts/src/dialog.cpp b/plugins/QuickContacts/src/dialog.cpp index 36e198c813..9e8bdf112d 100644 --- a/plugins/QuickContacts/src/dialog.cpp +++ b/plugins/QuickContacts/src/dialog.cpp @@ -110,7 +110,7 @@ void SortArray(void) int GetStatus(MCONTACT hContact, char *proto = nullptr) { if (proto == nullptr) - proto = GetContactProto(hContact); + proto = Proto_GetBaseAccountName(hContact); if (proto == nullptr) return ID_STATUS_OFFLINE; @@ -140,7 +140,7 @@ void LoadContacts(HWND hwndDlg, BOOL show_all) FreeContacts(); for (auto &hContact : Contacts()) { - char *pszProto = GetContactProto(hContact); + char *pszProto = Proto_GetBaseAccountName(hContact); if (pszProto == nullptr) continue; @@ -236,7 +236,7 @@ void EnableButtons(HWND hwndDlg, MCONTACT hContact) // Get caps INT_PTR caps = 0; - char *pszProto = GetContactProto(hContact); + char *pszProto = Proto_GetBaseAccountName(hContact); if (pszProto != nullptr) caps = CallProtoService(pszProto, PS_GETCAPS, PFLAGNUM_1, 0); -- cgit v1.2.3