From 5b42b5777e17fe97b2f7ace31543c90081629b63 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Thu, 1 Jan 2009 23:43:23 +0000 Subject: [PATCH] Refactoring: i++; changed to ++i; --- checkother.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/checkother.cpp b/checkother.cpp index 49a74d3ac..27828a3c0 100644 --- a/checkother.cpp +++ b/checkother.cpp @@ -469,11 +469,11 @@ void CheckOther::CheckVariableScope() if ( tok->str() == "{" ) { - indentlevel++; + ++indentlevel; } if ( tok->str() == "}" ) { - indentlevel--; + --indentlevel; if ( indentlevel == 0 ) func = false; } @@ -523,12 +523,12 @@ void CheckOther::CheckVariableScope_LookupVar( const TOKEN *tok1, const char var { if ( tok->str() == "{" ) { - indentlevel++; + ++indentlevel; } else if ( tok->str() == "}" ) { - indentlevel--; + --indentlevel; if ( indentlevel == 0 ) { if ( for_or_while && used ) @@ -540,12 +540,12 @@ void CheckOther::CheckVariableScope_LookupVar( const TOKEN *tok1, const char var else if ( tok->str() == "(" ) { - parlevel++; + ++parlevel; } else if ( tok->str() == ")" ) { - parlevel--; + --parlevel; }