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/FavContacts/src/menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/FavContacts/src/menu.cpp') diff --git a/plugins/FavContacts/src/menu.cpp b/plugins/FavContacts/src/menu.cpp index 086d303557..de3817148a 100644 --- a/plugins/FavContacts/src/menu.cpp +++ b/plugins/FavContacts/src/menu.cpp @@ -73,7 +73,7 @@ static BOOL sttMeasureItem_Contact(LPMEASUREITEMSTRUCT lpmis, Options *options) bool bFree = false; wchar_t *title = db_get_wsa(hContact, "CList", "StatusMsg"); if (title == nullptr) { - char *proto = GetContactProto(hContact); + char *proto = Proto_GetBaseAccountName(hContact); int status = db_get_w(hContact, proto, "Status", ID_STATUS_OFFLINE); title = Clist_GetStatusModeDescription(status, 0); } @@ -239,7 +239,7 @@ static BOOL sttDrawItem_Contact(LPDRAWITEMSTRUCT lpdis, Options *options = nullp lpdis->rcItem.top += 2; lpdis->rcItem.bottom -= 2; - char *proto = GetContactProto(hContact); + char *proto = Proto_GetBaseAccountName(hContact); HIMAGELIST hIml = Clist_GetImageList(); int iIcon = Clist_GetContactIcon(hContact); -- cgit v1.2.3