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/clistsettings.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/clistsettings.c')
-rw-r--r-- | plugins/Mwclist/clistsettings.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Mwclist/clistsettings.c b/plugins/Mwclist/clistsettings.c index 01207fb503..ba3ef3befa 100644 --- a/plugins/Mwclist/clistsettings.c +++ b/plugins/Mwclist/clistsettings.c @@ -74,7 +74,7 @@ void FreeDisplayNameCache(SortedList *list) {
int i;
- for( i=0; i < list->realCount; i++) {
+ for ( i=0; i < list->realCount; i++) {
FreeDisplayNameCacheItem(list->items[i] );
mir_free(list->items[i]);
}
@@ -333,7 +333,7 @@ int ContactSettingChanged(WPARAM wParam,LPARAM lParam) SortContacts();
} }
- if(!strcmp(cws->szModule,"CList")) {
+ if (!strcmp(cws->szModule,"CList")) {
/*
sprintf(buf,"CHANGE: module:CList setting:%s %s\r\n",cws->szSetting,cws->value.pszVal);
OutputDebugStringA(buf);
@@ -343,22 +343,22 @@ int ContactSettingChanged(WPARAM wParam,LPARAM lParam) if(pdnce->name == NULL||(!strcmp(cws->szSetting,"MyHandle")) )
InvalidateDisplayNameCacheEntryByPDNE((HANDLE)wParam,pdnce,cws->value.type);
- if((!strcmp(cws->szSetting,"Group")) )
+ if ((!strcmp(cws->szSetting,"Group")) )
InvalidateDisplayNameCacheEntryByPDNE((HANDLE)wParam,pdnce,cws->value.type);
- if(!strcmp(cws->szSetting,"Hidden")) {
+ if (!strcmp(cws->szSetting,"Hidden")) {
InvalidateDisplayNameCacheEntryByPDNE((HANDLE)wParam,pdnce,cws->value.type);
if(cws->value.type == DBVT_DELETED || cws->value.bVal == 0) {
char *szProto=(char*)CallService(MS_PROTO_GETCONTACTBASEPROTO,wParam,0);
ChangeContactIcon((HANDLE)wParam,ExtIconFromStatusMode((HANDLE)wParam,szProto,szProto == NULL?ID_STATUS_OFFLINE:DBGetContactSettingWord((HANDLE)wParam,szProto,"Status",ID_STATUS_OFFLINE)),1); //by FYR
} }
- if(!strcmp(cws->szSetting,"noOffline"))
+ if (!strcmp(cws->szSetting,"noOffline"))
InvalidateDisplayNameCacheEntryByPDNE((HANDLE)wParam,pdnce,cws->value.type);
}
- if(!strcmp(cws->szModule,"Protocol")) {
- if(!strcmp(cws->szSetting,"p")) {
+ if (!strcmp(cws->szModule,"Protocol")) {
+ if (!strcmp(cws->szSetting,"p")) {
char *szProto;
OutputDebugStringA("CHANGE: proto\r\n");
|