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 /protocols/IRCG/tools.cpp | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IRCG/tools.cpp')
-rw-r--r-- | protocols/IRCG/tools.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/IRCG/tools.cpp b/protocols/IRCG/tools.cpp index ae1ae9e061..f2424c5689 100644 --- a/protocols/IRCG/tools.cpp +++ b/protocols/IRCG/tools.cpp @@ -183,7 +183,7 @@ CMString __stdcall GetWord(const TCHAR* text, int index) }
p2 = _tcschr(p1, ' ');
- if( !p2 )
+ if ( !p2 )
p2 = _tcschr(p1, '\0');
if (p1 != p2)
@@ -195,7 +195,7 @@ CMString __stdcall GetWord(const TCHAR* text, int index) const TCHAR* __stdcall GetWordAddress(const TCHAR* text, int index)
{
- if( !text || !lstrlen(text))
+ if ( !text || !lstrlen(text))
return text;
const TCHAR* temp = text;
@@ -344,7 +344,7 @@ String __stdcall GetWord(const char* text, int index) }
p2 = strchr(p1, ' ');
- if(!p2)
+ if (!p2)
p2 = strchr(p1, '\0');
if (p1 != p2)
@@ -365,7 +365,7 @@ TCHAR* __stdcall my_strstri(const TCHAR* s1, const TCHAR* s2) int i,j,k;
for(i=0;s1[i];i++)
for(j=i,k=0; _totlower(s1[j]) == _totlower(s2[k]);j++,k++)
- if(!s2[k+1])
+ if (!s2[k+1])
return ( TCHAR* )(s1+i);
return NULL;
|