summaryrefslogtreecommitdiff
path: root/plugins/FavContacts/src/menu.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-12-04 16:08:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-12-04 16:08:03 +0300
commit3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 (patch)
tree59dbb53fc9496d660ec2ef2846a4eab0f1720b88 /plugins/FavContacts/src/menu.cpp
parent3216d8df5cb355f34c82ed10b7e40bab7525b697 (diff)
GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName
Diffstat (limited to 'plugins/FavContacts/src/menu.cpp')
-rw-r--r--plugins/FavContacts/src/menu.cpp4
1 files changed, 2 insertions, 2 deletions
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);