Tokenizer: 'simplifyCalculations();' should have the same results as 'while (simplifyCalculations());'

This commit is contained in:
Daniel Marjamäki 2010-08-08 09:25:09 +02:00
parent 5d1e85dde1
commit 5a8181d425
1 changed files with 1 additions and 2 deletions

View File

@ -3579,8 +3579,7 @@ bool Tokenizer::simplifyTokenList()
} }
// Simplify simple calculations.. // Simplify simple calculations..
while (simplifyCalculations()) simplifyCalculations();
;
// Replace "*(str + num)" => "str[num]" // Replace "*(str + num)" => "str[num]"
for (Token *tok = _tokens; tok; tok = tok->next()) for (Token *tok = _tokens; tok; tok = tok->next())