diff options
author | George Hazan <ghazan@miranda.im> | 2019-12-04 16:08:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-12-04 16:08:03 +0300 |
commit | 3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 (patch) | |
tree | 59dbb53fc9496d660ec2ef2846a4eab0f1720b88 /plugins/QuickContacts | |
parent | 3216d8df5cb355f34c82ed10b7e40bab7525b697 (diff) |
GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName
Diffstat (limited to 'plugins/QuickContacts')
-rw-r--r-- | plugins/QuickContacts/src/dialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |