From 3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 Mon Sep 17 00:00:00 2001 From: George Hazan <ghazan@miranda.im> Date: Wed, 4 Dec 2019 16:08:03 +0300 Subject: GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName --- plugins/MobileState/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MobileState') diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp index 8d7e93c552..29ed1e40ae 100644 --- a/plugins/MobileState/src/main.cpp +++ b/plugins/MobileState/src/main.cpp @@ -51,7 +51,7 @@ CMPlugin::CMPlugin() : bool hasMobileClient(MCONTACT hContact, LPARAM) { - char *proto = GetContactProto(hContact); + char *proto = Proto_GetBaseAccountName(hContact); ptrW client(db_get_wsa(hContact, proto, "MirVer")); if (client) { @@ -84,7 +84,7 @@ static int ExtraIconsApply(WPARAM wParam, LPARAM lParam) static int onContactSettingChanged(WPARAM wParam, LPARAM lParam) { - char *proto = GetContactProto(wParam); + char *proto = Proto_GetBaseAccountName(wParam); if (!proto) return 0; -- cgit v1.2.3