summaryrefslogtreecommitdiff
path: root/plugins/Clist_mw/src/clcidents.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-15 21:04:26 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-15 21:04:26 +0000
commitd949a7ed17fd90bfc1ee5d85c83812b974037531 (patch)
treec33e397185df5c4c974afa4ad385fa63dc48e637 /plugins/Clist_mw/src/clcidents.cpp
parent90b4d09356a49c0f1c9f4ca0dc1cbc27f11fc2ae (diff)
- fix for the Online/Offline button in clist_mw
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2320 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_mw/src/clcidents.cpp')
-rw-r--r--plugins/Clist_mw/src/clcidents.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Clist_mw/src/clcidents.cpp b/plugins/Clist_mw/src/clcidents.cpp
index 8c254fef90..43a34f4e61 100644
--- a/plugins/Clist_mw/src/clcidents.cpp
+++ b/plugins/Clist_mw/src/clcidents.cpp
@@ -80,7 +80,7 @@ int GetRowsPriorTo(ClcGroup *group,ClcGroup *subgroup,int contactIndex)
return -1;
}
-pClcCacheEntry GetCLCFullCacheEntry(struct ClcData *dat,HANDLE hContact)
+ClcCacheEntry *GetCLCFullCacheEntry(struct ClcData *dat,HANDLE hContact)
{
if (hContact == 0)
return NULL;
@@ -109,14 +109,14 @@ pClcCacheEntry GetCLCFullCacheEntry(struct ClcData *dat,HANDLE hContact)
void ClearClcContactCache(struct ClcData *dat,HANDLE hContact)
{
- pClcCacheEntry cacheEntry;
+ ClcCacheEntry *cacheEntry;
if (hContact == INVALID_HANDLE_VALUE) {
int i,tick;
tick = GetTickCount();
for (i = 0;i<(dat->lCLCContactsCache.realCount);i++) {
- pClcCacheEntry pdnce = (pClcCacheEntry)dat->lCLCContactsCache.items[i];
+ ClcCacheEntry *pdnce = (ClcCacheEntry *)dat->lCLCContactsCache.items[i];
pdnce->ClcContact = NULL;
}
tick = GetTickCount()-tick;
@@ -135,7 +135,7 @@ void ClearClcContactCache(struct ClcData *dat,HANDLE hContact)
void SetClcContactCacheItem(struct ClcData *dat,HANDLE hContact,void *contact)
{
- pClcCacheEntry cacheEntry;
+ ClcCacheEntry *cacheEntry;
if ( !IsHContactGroup(hContact) && !IsHContactInfo(hContact)) {
cacheEntry = GetCLCFullCacheEntry(dat,hContact);
if (cacheEntry != NULL)
@@ -153,7 +153,7 @@ int FindItem(HWND hwnd,struct ClcData *dat,HANDLE hItem,struct ClcContact **cont
if (isVisible == NULL && hItem != NULL && subgroup == NULL && !IsHContactGroup(hItem) && !IsHContactInfo(hItem)) {
//try use cache
- pClcCacheEntry cacheEntry;
+ ClcCacheEntry *cacheEntry;
cacheEntry = GetCLCFullCacheEntry(dat,hItem);
if (cacheEntry != NULL) {
if (cacheEntry->ClcContact == NULL) {
@@ -185,7 +185,7 @@ int FindItem(HWND hwnd,struct ClcData *dat,HANDLE hItem,struct ClcContact **cont
nowVisible = 1;
for (tgroup = group;tgroup;tgroup = tgroup->parent)
- if (!group->expanded) {
+ if ( !group->expanded) {
nowVisible = 0;
break;
}
@@ -198,7 +198,7 @@ int FindItem(HWND hwnd,struct ClcData *dat,HANDLE hItem,struct ClcContact **cont
(IsHContactContact(hItem) && group->cl.items[group->scanIndex]->type == CLCIT_CONTACT && group->cl.items[group->scanIndex]->hContact == hItem) ||
(IsHContactInfo(hItem) && group->cl.items[group->scanIndex]->type == CLCIT_INFO && group->cl.items[group->scanIndex]->hContact == (HANDLE)((UINT_PTR)hItem&~HCONTACT_ISINFO))) {
if (isVisible) {
- if (!nowVisible) *isVisible = 0;
+ if ( !nowVisible) *isVisible = 0;
else {
if ((index+1)*dat->rowHeight<dat->yScroll) *isVisible = 0;
else {
@@ -242,7 +242,7 @@ ClcGroup *CacheIndex[CacheArrSize] = {NULL};
boolean CacheIndexClear = TRUE;
void ClearRowByIndexCache()
{
- if (!CacheIndexClear) {
+ if ( !CacheIndexClear) {
memset(CacheIndex,0,sizeof(CacheIndex));
CacheIndexClear = TRUE;
}