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_cachefuncs.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_cachefuncs.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_cachefuncs.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/modern_cachefuncs.cpp b/plugins/Clist_modern/src/modern_cachefuncs.cpp index 9aaeabbe22..af7a5d4ff7 100644 --- a/plugins/Clist_modern/src/modern_cachefuncs.cpp +++ b/plugins/Clist_modern/src/modern_cachefuncs.cpp @@ -69,8 +69,7 @@ void Cache_GetText(ClcData *dat, ClcContact *contact, BOOL forceRenew) { Cache_GetFirstLineText(dat, contact); if (!dat->force_in_dialog) { - ClcCacheEntry *pdnce = pcli->pfnGetCacheEntry(contact->hContact); - if ((dat->second_line_show && (forceRenew || pdnce->szSecondLineText == NULL)) || (dat->third_line_show && (forceRenew || pdnce->szThirdLineText == NULL))) + if ((dat->second_line_show && (forceRenew || contact->pce->szSecondLineText == NULL)) || (dat->third_line_show && (forceRenew || contact->pce->szThirdLineText == NULL))) gtaAddRequest(dat, contact->hContact); } } @@ -479,7 +478,7 @@ void Cache_GetFirstLineText(ClcData *dat, ClcContact *contact) if (GetCurrentThreadId() != g_dwMainThreadID) return; - ClcCacheEntry *pdnce = pcli->pfnGetCacheEntry(contact->hContact); + ClcCacheEntry *pdnce = contact->pce; TCHAR *name = pcli->pfnGetContactDisplayName(contact->hContact, 0); if (dat->first_line_append_nick && !dat->force_in_dialog) { DBVARIANT dbv = { 0 }; |