summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clistmod.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-15 17:29:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-15 17:29:58 +0000
commite311fc5f472c169ec0f25729fa5070fdd4a6c805 (patch)
treeb63a187d53fc6a061422a851ae3dbd8123be909a /plugins/Clist_modern/src/modern_clistmod.cpp
parent6cd8cc0b3461df48269fac24aad474154fb040b2 (diff)
clist_modern: code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2318 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clistmod.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clistmod.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/modern_clistmod.cpp b/plugins/Clist_modern/src/modern_clistmod.cpp
index 3598024215..eef6c834ca 100644
--- a/plugins/Clist_modern/src/modern_clistmod.cpp
+++ b/plugins/Clist_modern/src/modern_clistmod.cpp
@@ -126,8 +126,7 @@ int cli_IconFromStatusMode(const char *szProto,int nStatus, HANDLE hContact)
// substitute params by mostonline contact datas
HANDLE hMostOnlineContact = (HANDLE)CallService(MS_MC_GETMOSTONLINECONTACT,(WPARAM)hActContact,0);
if (hMostOnlineContact) {
- pClcCacheEntry cacheEntry;
- cacheEntry = (pClcCacheEntry)pcli->pfnGetCacheEntry(hMostOnlineContact);
+ ClcCacheEntry *cacheEntry = pcli->pfnGetCacheEntry(hMostOnlineContact);
if (cacheEntry && cacheEntry->m_cache_cszProto) {
szActProto = cacheEntry->m_cache_cszProto;
nActStatus = pdnce___GetStatus( cacheEntry );
@@ -155,7 +154,7 @@ int cli_IconFromStatusMode(const char *szProto,int nStatus, HANDLE hContact)
return corecli.pfnIconFromStatusMode(szProto,nStatus,NULL);
}
-int GetContactIconC(pClcCacheEntry cacheEntry)
+int GetContactIconC(ClcCacheEntry *cacheEntry)
{
return ExtIconFromStatusMode(cacheEntry->hContact,cacheEntry->m_cache_cszProto,cacheEntry->m_cache_cszProto == NULL ? ID_STATUS_OFFLINE : pdnce___GetStatus( cacheEntry ));
}