diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-13 17:26:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-13 17:26:45 +0000 |
commit | 5e686292c537275c8ea1399f311c082d905e8a63 (patch) | |
tree | 88a4f3921ff70323775f3329c8820a0fe947d74f /src/modules/protocols/protochains.cpp | |
parent | 90c154b4be566ec4a804217d0f1e50fb1e259b72 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@398 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/protocols/protochains.cpp')
-rw-r--r-- | src/modules/protocols/protochains.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/protocols/protochains.cpp b/src/modules/protocols/protochains.cpp index c8c1b3d5c6..f5ebd92fb1 100644 --- a/src/modules/protocols/protochains.cpp +++ b/src/modules/protocols/protochains.cpp @@ -213,7 +213,7 @@ static INT_PTR Proto_AddToContact(WPARAM wParam,LPARAM lParam) if (DBGetContactSettingString((HANDLE)wParam,"_Filter",str,&dbv)) break;
pdCompare = Proto_IsProtocolLoaded(( char* )dbv.pszVal );
mir_free(dbv.pszVal);
- if (pdCompare==NULL) continue;
+ if (pdCompare == NULL) continue;
if (pd->type > pdCompare->type) break;
}
//put the new module at position i
@@ -241,12 +241,12 @@ static INT_PTR Proto_RemoveFromContact(WPARAM wParam,LPARAM lParam) i = Proto_IsProtoOnContact(wParam,lParam);
if (!i) return 1;
- if (i==-1)
+ if (i == -1)
DBDeleteContactSetting((HANDLE)wParam,"Protocol","p");
else {
for (i--;;i++) { //we have to decrease i, as Proto_IsOnContact returns +1 more number than read from database
_itoa(i+1,str,10);
- if (0!=DBGetContactSettingString((HANDLE)wParam,"_Filter",str,&dbv)) {
+ if (0 != DBGetContactSettingString((HANDLE)wParam,"_Filter",str,&dbv)) {
_itoa(i,str,10);
DBDeleteContactSetting((HANDLE)wParam,"_Filter",str);
break;
|