Refactoring: i++; changed to ++i;

This commit is contained in:
Reijo Tomperi 2009-01-01 23:43:23 +00:00
parent 94923cca1a
commit 5b42b5777e
1 changed files with 6 additions and 6 deletions

View File

@ -469,11 +469,11 @@ void CheckOther::CheckVariableScope()
if ( tok->str() == "{" ) if ( tok->str() == "{" )
{ {
indentlevel++; ++indentlevel;
} }
if ( tok->str() == "}" ) if ( tok->str() == "}" )
{ {
indentlevel--; --indentlevel;
if ( indentlevel == 0 ) if ( indentlevel == 0 )
func = false; func = false;
} }
@ -523,12 +523,12 @@ void CheckOther::CheckVariableScope_LookupVar( const TOKEN *tok1, const char var
{ {
if ( tok->str() == "{" ) if ( tok->str() == "{" )
{ {
indentlevel++; ++indentlevel;
} }
else if ( tok->str() == "}" ) else if ( tok->str() == "}" )
{ {
indentlevel--; --indentlevel;
if ( indentlevel == 0 ) if ( indentlevel == 0 )
{ {
if ( for_or_while && used ) if ( for_or_while && used )
@ -540,12 +540,12 @@ void CheckOther::CheckVariableScope_LookupVar( const TOKEN *tok1, const char var
else if ( tok->str() == "(" ) else if ( tok->str() == "(" )
{ {
parlevel++; ++parlevel;
} }
else if ( tok->str() == ")" ) else if ( tok->str() == ")" )
{ {
parlevel--; --parlevel;
} }