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/stduseronline/src/useronline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/stduseronline') diff --git a/src/core/stduseronline/src/useronline.cpp b/src/core/stduseronline/src/useronline.cpp index 1077defd18..2a3c16d49f 100644 --- a/src/core/stduseronline/src/useronline.cpp +++ b/src/core/stduseronline/src/useronline.cpp @@ -90,7 +90,7 @@ static int UserOnlineModulesLoaded(WPARAM, LPARAM) // reset the counter for (int i = 0; i < numAccounts; i++) - if (Proto_IsAccountEnabled(accounts[i])) + if (accounts[i]->IsEnabled()) db_set_dw(NULL, "UserOnline", accounts[i]->szModuleName, GetTickCount()); return 0; @@ -104,7 +104,7 @@ static int UserOnlineAccountsChanged(WPARAM eventCode, LPARAM lParam) case PRAC_ADDED: case PRAC_CHECKED: // reset the counter - if (Proto_IsAccountEnabled(pa)) + if (pa->IsEnabled()) db_set_dw(NULL, "UserOnline", pa->szModuleName, GetTickCount()); break; } -- cgit v1.2.3