diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/Mwclist/contact.c | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Mwclist/contact.c')
-rw-r--r-- | plugins/Mwclist/contact.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Mwclist/contact.c b/plugins/Mwclist/contact.c index 6e602a6624..578dae5441 100644 --- a/plugins/Mwclist/contact.c +++ b/plugins/Mwclist/contact.c @@ -84,7 +84,7 @@ void LoadContactTree(void) tick=GetTickCount();
CallService(MS_CLUI_LISTBEGINREBUILD,0,0);
for(i=1;;i++) {
- if((char*)CallService(MS_CLIST_GROUPGETNAME2,i,(LPARAM)(int*)NULL)==NULL) break;
+ if ((char*)CallService(MS_CLIST_GROUPGETNAME2,i,(LPARAM)(int*)NULL)==NULL) break;
CallService(MS_CLUI_GROUPADDED,i,0);
}
@@ -99,7 +99,7 @@ void LoadContactTree(void) break;
}
status=cacheEntry->status;
- if((!hideOffline || status!=ID_STATUS_OFFLINE) && !cacheEntry->Hidden)
+ if ((!hideOffline || status!=ID_STATUS_OFFLINE) && !cacheEntry->Hidden)
ChangeContactIcon(hContact,ExtIconFromStatusMode(hContact,(char*)cacheEntry->szProto,status),1);
hContact=(HANDLE)CallService(MS_DB_CONTACT_FINDNEXT,(WPARAM)hContact,0);
}
@@ -137,7 +137,7 @@ int CompareContacts( const struct ClcContact *contact1, const struct ClcContact /* deal with statuses, online contacts have to go above offline */
if (sortNoOfflineBottom==0)
- if((statusa==ID_STATUS_OFFLINE)!=(statusb==ID_STATUS_OFFLINE)) {
+ if ((statusa==ID_STATUS_OFFLINE)!=(statusb==ID_STATUS_OFFLINE)) {
return 2*(statusa==ID_STATUS_OFFLINE)-1;
}
/* both are online, now check protocols */
@@ -156,7 +156,7 @@ int CompareContacts( const struct ClcContact *contact1, const struct ClcContact //one is offline: offline goes below online
if (sortNoOfflineBottom==0)
{
- if((statusa==ID_STATUS_OFFLINE)!=(statusb==ID_STATUS_OFFLINE)) {
+ if ((statusa==ID_STATUS_OFFLINE)!=(statusb==ID_STATUS_OFFLINE)) {
return 2*(statusa==ID_STATUS_OFFLINE)-1;
}
}
@@ -188,7 +188,7 @@ void SortContacts(void) INT_PTR ContactChangeGroup(WPARAM wParam,LPARAM lParam)
{
CallService(MS_CLUI_CONTACTDELETED,wParam,0);
- if((HANDLE)lParam==NULL)
+ if ((HANDLE)lParam==NULL)
DBDeleteContactSetting((HANDLE)wParam,"CList","Group");
else
DBWriteContactSettingString((HANDLE)wParam,"CList","Group",(char*)CallService(MS_CLIST_GROUPGETNAME2,lParam,(LPARAM)(int*)NULL));
|