diff options
author | George Hazan <george.hazan@gmail.com> | 2016-04-27 13:14:43 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-04-27 13:14:43 +0000 |
commit | fb5f50bc10318b32d3d99480874813a05551d740 (patch) | |
tree | 0a15ed6ba91db7a3ceeaf01767bf2ef7e34c41dd /plugins/Clist_modern/src/modern_contact.cpp | |
parent | 6524ac4e637dba2de42df5ca6eac4a9a5501a4d2 (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_contact.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_contact.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_contact.cpp b/plugins/Clist_modern/src/modern_contact.cpp index f7dc4aa4fb..36efba43c6 100644 --- a/plugins/Clist_modern/src/modern_contact.cpp +++ b/plugins/Clist_modern/src/modern_contact.cpp @@ -95,8 +95,7 @@ int cliCompareContacts(const ClcContact *contact1, const ClcContact *contact2) if ((INT_PTR)contact1 < 100 || (INT_PTR)contact2 < 100)
return 0;
- ClcCacheEntry *c1 = pcli->pfnGetCacheEntry(contact1->hContact);
- ClcCacheEntry *c2 = pcli->pfnGetCacheEntry(contact2->hContact);
+ ClcCacheEntry *c1 = contact1->pce, *c2 = contact2->pce;
for (int i = 0; i < _countof(g_CluiData.bSortByOrder); i++) {
BYTE &by = g_CluiData.bSortByOrder[i];
|