summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clc.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-27 13:14:43 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-27 13:14:43 +0000
commitfb5f50bc10318b32d3d99480874813a05551d740 (patch)
tree0a15ed6ba91db7a3ceeaf01767bf2ef7e34c41dd /plugins/Clist_modern/src/modern_clc.cpp
parent6524ac4e637dba2de42df5ca6eac4a9a5501a4d2 (diff)
persistent cache, no need to call pfnGetCacheEntry each time
git-svn-id: http://svn.miranda-ng.org/main/trunk@16774 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clc.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp
index a4183bc8f2..094ca5b4f8 100644
--- a/plugins/Clist_modern/src/modern_clc.cpp
+++ b/plugins/Clist_modern/src/modern_clc.cpp
@@ -273,9 +273,8 @@ static BOOL clcItemNotHiddenOffline(ClcGroup *group, ClcContact *contact)
if (g_CluiData.bFilterEffective) return FALSE;
if (!contact) return FALSE;
- ClcCacheEntry *pdnce = pcli->pfnGetCacheEntry(contact->hContact);
- if (!pdnce) return FALSE;
- if (pdnce->m_bNoHiddenOffline) return TRUE;
+
+ if (contact->pce->m_bNoHiddenOffline) return TRUE;
if (!group) return FALSE;
if (group->hideOffline) return FALSE;