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 | |
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')
-rw-r--r-- | src/modules/protocols/protochains.cpp | 6 | ||||
-rw-r--r-- | src/modules/protocols/protocols.cpp | 4 |
2 files changed, 5 insertions, 5 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;
diff --git a/src/modules/protocols/protocols.cpp b/src/modules/protocols/protocols.cpp index 8916ff1512..ed1e7c14f2 100644 --- a/src/modules/protocols/protocols.cpp +++ b/src/modules/protocols/protocols.cpp @@ -326,7 +326,7 @@ char** __fastcall Proto_FilesMatrixA( wchar_t **files ) if ( files == NULL ) return NULL;
int count = 0;
- while( files[ count++ ] );
+ while ( files[ count++ ] );
char** filesA = ( char** )mir_alloc( count * sizeof( char* ));
for ( int i = 0; i < count; ++i )
@@ -340,7 +340,7 @@ static wchar_t** __fastcall Proto_FilesMatrixU( char **files ) if ( files == NULL ) return NULL;
int count = 0;
- while( files[ count++ ] );
+ while ( files[ count++ ] );
wchar_t** filesU = ( wchar_t** )mir_alloc( count * sizeof( wchar_t* ));
for ( int i = 0; i < count; ++i )
|