summaryrefslogtreecommitdiff
path: root/src/modules/utils/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/utils/utils.cpp')
-rw-r--r--src/modules/utils/utils.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/modules/utils/utils.cpp b/src/modules/utils/utils.cpp
index bbd6deb19f..04a7da1b5b 100644
--- a/src/modules/utils/utils.cpp
+++ b/src/modules/utils/utils.cpp
@@ -301,8 +301,8 @@ static INT_PTR GetCountryByNumber(WPARAM wParam, LPARAM)
{
int i;
- for(i=0; i < SIZEOF(countries); i++ )
- if((int)wParam==countries[i].id) return (INT_PTR)countries[i].szName;
+ for (i=0; i < SIZEOF(countries); i++ )
+ if ((int)wParam==countries[i].id) return (INT_PTR)countries[i].szName;
return (INT_PTR)NULL;
}
@@ -388,8 +388,8 @@ static INT_PTR RestoreWindowPosition(WPARAM wParam,LPARAM lParam)
x=DBGetContactSettingDword(swp->hContact,swp->szModule,szSettingName,-1);
mir_snprintf(szSettingName, SIZEOF(szSettingName), "%sy", swp->szNamePrefix);
y=(int)DBGetContactSettingDword(swp->hContact,swp->szModule,szSettingName,-1);
- if(x==-1) return 1;
- if(wParam&RWPF_NOSIZE) {
+ if (x==-1) return 1;
+ if (wParam&RWPF_NOSIZE) {
OffsetRect(&wp.rcNormalPosition,x-wp.rcNormalPosition.left,y-wp.rcNormalPosition.top);
}
else {
@@ -534,21 +534,21 @@ char* __fastcall ltrimp(char* str)
bool __fastcall wildcmp(char * name, char * mask)
{
char * last='\0';
- for(;; mask++, name++)
+ for (;; mask++, name++)
{
- if(*mask != '?' && *mask != *name) break;
- if(*name == '\0') return ((BOOL)!*mask);
+ if (*mask != '?' && *mask != *name) break;
+ if (*name == '\0') return ((BOOL)!*mask);
}
- if(*mask != '*') return FALSE;
- for(;; mask++, name++)
+ if (*mask != '*') return FALSE;
+ for (;; mask++, name++)
{
while(*mask == '*')
{
last = mask++;
- if(*mask == '\0') return ((BOOL)!*mask); /* true */
+ if (*mask == '\0') return ((BOOL)!*mask); /* true */
}
- if(*name == '\0') return ((BOOL)!*mask); /* *mask == EOS */
- if(*mask != '?' && *mask != *name) name -= (size_t)(mask - last) - 1, mask = last;
+ if (*name == '\0') return ((BOOL)!*mask); /* *mask == EOS */
+ if (*mask != '?' && *mask != *name) name -= (size_t)(mask - last) - 1, mask = last;
}
}