From 66b61f42871089f3962920924f9030cd6dff2ad8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Apr 2018 13:37:13 +0300 Subject: CLIST_INTERFACE: - unused members removed (requires new History++ for people who compile Miranda themselves); - useless helpers Proto_IsAccountEnabled & Proto_IsProtocolLocked replaced with direct calls of PROTOACCOUNT members IsEnabled & IsLocked respectively; - static interface member pfnGetProtocolVisibility replaced with static function Clist_GetProtocolVisibility or PROTOACCOUNT::IsVisible when possible --- src/core/stdautoaway/src/autoaway.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/stdautoaway') diff --git a/src/core/stdautoaway/src/autoaway.cpp b/src/core/stdautoaway/src/autoaway.cpp index bf783cc3a1..27531d2b2b 100644 --- a/src/core/stdautoaway/src/autoaway.cpp +++ b/src/core/stdautoaway/src/autoaway.cpp @@ -63,7 +63,7 @@ static int AutoAwayEvent(WPARAM, LPARAM lParam) for (int i = 0; i < numAccounts; i++) { PROTOACCOUNT *pa = accounts[i]; - if (!Proto_IsAccountEnabled(pa) || Proto_IsAccountLocked(pa)) + if (!pa->IsEnabled() || pa->IsLocked()) continue; int currentstatus = CallProtoService(pa->szModuleName, PS_GETSTATUS, 0, 0); -- cgit v1.2.3