diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-03 13:37:13 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-03 13:37:13 +0300 |
commit | 66b61f42871089f3962920924f9030cd6dff2ad8 (patch) | |
tree | bfa19d1db1c84a841dd1e6ea258ae1d9212d2ada /plugins/Clist_nicer/src/cluiservices.cpp | |
parent | dfe4c13573386072b6fcf177e8f52fafc81891f1 (diff) |
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
Diffstat (limited to 'plugins/Clist_nicer/src/cluiservices.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/cluiservices.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Clist_nicer/src/cluiservices.cpp b/plugins/Clist_nicer/src/cluiservices.cpp index 4d81e16761..2e84ed6039 100644 --- a/plugins/Clist_nicer/src/cluiservices.cpp +++ b/plugins/Clist_nicer/src/cluiservices.cpp @@ -79,12 +79,12 @@ void CluiProtocolStatusChanged(int, const char*) rc.right -= borders[0] * 2;
int toshow = 0;
for (int i = 0; i < protoCount; i++)
- if (pcli->pfnGetProtocolVisibility(accs[i]->szModuleName))
+ if (accs[i]->IsVisible())
toshow++;
if (toshow > 0) {
for (int part = 0, i = 0; i < protoCount; i++) {
- if (!pcli->pfnGetProtocolVisibility(accs[i]->szModuleName))
+ if (!accs[i]->IsVisible())
continue;
partWidths[part] = ((rc.right - rc.left - rdelta) / toshow)*(part + 1) + cfg::dat.bCLeft;
@@ -112,7 +112,7 @@ void CluiProtocolStatusChanged(int, const char*) continue;
PROTOACCOUNT *pa = accs[idx];
- if (!pcli->pfnGetProtocolVisibility(pa->szModuleName))
+ if (!pa->IsVisible())
continue;
int x = 2;
@@ -157,7 +157,7 @@ void CluiProtocolStatusChanged(int, const char*) continue;
PROTOACCOUNT *pa = accs[idx];
- if (!pcli->pfnGetProtocolVisibility(pa->szModuleName))
+ if (!pa->IsVisible())
continue;
int status = CallProtoService(pa->szModuleName, PS_GETSTATUS, 0, 0);
|