From 500dd4848842f6d4207584417448586d060fbd6a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 Jul 2022 18:07:27 +0300 Subject: Contact: group of functions gathered into the personal namespace --- plugins/MenuItemEx/src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/MenuItemEx') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index fee6f9234c..a6cd043c2c 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -346,7 +346,7 @@ static INT_PTR onSetVis(WPARAM wparam, LPARAM) static INT_PTR onHide(WPARAM wparam, LPARAM) { MCONTACT hContact = (MCONTACT)wparam; - Contact_Hide(hContact, !Contact_IsHidden(hContact)); + Contact::Hide(hContact, !Contact::IsHidden(hContact)); return 0; } @@ -382,7 +382,7 @@ static void ModifyCopyID(MCONTACT hContact, BOOL bShowID, BOOL bTrimID) hIconCID = hIcon; } - ptrW wszId(Contact_GetInfo(CNF_UNIQUEID, hContact, szProto)); + ptrW wszId(Contact::GetInfo(CNF_UNIQUEID, hContact, szProto)); if (wszId) { if (bShowID) { if (bTrimID && (mir_wstrlen(wszId) > MAX_IDLEN)) { @@ -468,7 +468,7 @@ static INT_PTR onCopyID(WPARAM hContact, LPARAM) return 0; CMStringW buf; - ptrW wszId(Contact_GetInfo(CNF_UNIQUEID, hContact, szProto)); + ptrW wszId(Contact::GetInfo(CNF_UNIQUEID, hContact, szProto)); if (g_plugin.getDword("flags", vf_default) & VF_CIDN) { PROTOACCOUNT *pa = Proto_GetAccount(szProto); @@ -612,7 +612,7 @@ static int isIgnored(MCONTACT hContact, int type) static INT_PTR onIgnore(WPARAM wparam, LPARAM lparam) { if (g_plugin.getByte("ignorehide", 0) && (lparam == IGNOREEVENT_ALL)) - Contact_Hide(wparam, !isIgnored((MCONTACT)wparam, lparam)); + Contact::Hide(wparam, !isIgnored((MCONTACT)wparam, lparam)); if (isIgnored(wparam, lparam)) Ignore_Allow(wparam, lparam); @@ -665,7 +665,7 @@ static int BuildMenu(WPARAM wparam, LPARAM) bEnabled = bShowAll || (flags & VF_HFL); Menu_ShowItem(hmenuHide, bEnabled); if (bEnabled) { - if (Contact_IsHidden(hContact)) + if (Contact::IsHidden(hContact)) Menu_ModifyItem(hmenuHide, LPGENW("Show in list"), IcoLib_GetIconHandle("miex_showil")); else Menu_ModifyItem(hmenuHide, LPGENW("Hide from list"), IcoLib_GetIconHandle("miex_hidefl")); -- cgit v1.2.3