From e76a4df48aa890a0e466c10f8bf6c40438ffb92a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Nov 2024 17:23:11 +0300 Subject: code cleaning --- src/mir_app/src/proto_opts.cpp | 2 +- src/mir_app/src/proto_order.cpp | 2 +- src/mir_app/src/protocols.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/proto_opts.cpp b/src/mir_app/src/proto_opts.cpp index 9304606d33..ab86295d9e 100644 --- a/src/mir_app/src/proto_opts.cpp +++ b/src/mir_app/src/proto_opts.cpp @@ -716,7 +716,7 @@ BOOL CAccountListCtrl::OnDrawItem(DRAWITEMSTRUCT *lps) lps->rcItem.top += sz.cy + 2; if (acc->ppro && Proto_IsProtocolLoaded(acc->szProtoName)) { - wchar_t *wszIdName = (wchar_t *)acc->ppro->GetCaps(PFLAG_UNIQUEIDTEXT, 0); + wchar_t *wszIdName = (wchar_t *)acc->ppro->GetCaps(PFLAG_UNIQUEIDTEXT); if (wszIdName == nullptr || (UINT_PTR)wszIdName == CALLSERVICE_NOTFOUND) wszIdName = TranslateT("Account ID"); diff --git a/src/mir_app/src/proto_order.cpp b/src/mir_app/src/proto_order.cpp index 0603189595..0199f2465f 100644 --- a/src/mir_app/src/proto_order.cpp +++ b/src/mir_app/src/proto_order.cpp @@ -95,7 +95,7 @@ static bool isProtoSuitable(PROTO_INTERFACE *ppi) if (ppi == nullptr) return true; - return (ppi->GetCaps(PFLAGNUM_2, 0) & ~ppi->GetCaps(PFLAGNUM_5, 0)) != 0; + return (ppi->GetCaps(PFLAGNUM_2) & ~ppi->GetCaps(PFLAGNUM_5)) != 0; } static bool ProtoToInclude(PROTOACCOUNT *pa) diff --git a/src/mir_app/src/protocols.cpp b/src/mir_app/src/protocols.cpp index aa4cf6bee7..132f33ac8d 100644 --- a/src/mir_app/src/protocols.cpp +++ b/src/mir_app/src/protocols.cpp @@ -352,7 +352,7 @@ bool PROTOACCOUNT::IsVisible() const if (pd == nullptr || (pd->type != PROTOTYPE_PROTOCOL && pd->type != PROTOTYPE_PROTOWITHACCS)) return false; - return (ppro->GetCaps(PFLAGNUM_2, 0) & ~ppro->GetCaps(PFLAGNUM_5, 0)); + return (ppro->GetCaps(PFLAGNUM_2) & ~ppro->GetCaps(PFLAGNUM_5)); } return false; -- cgit v1.2.3