Refactoring: Use %op%

This commit is contained in:
Daniel Marjamäki 2011-04-09 18:33:37 +02:00
parent 447f61e9c7
commit a4471bc150
1 changed files with 1 additions and 1 deletions

View File

@ -7266,7 +7266,7 @@ bool Tokenizer::simplifyCalculations()
tok->deleteThis(); tok->deleteThis();
ret = true; ret = true;
} }
else if (Token::Match(tok->previous(), "[=[(,] 0 * %any% [+-*/,]);]")) else if (Token::Match(tok->previous(), "[=[(,] 0 * %any% ,|]|)|;|%op%"))
{ {
tok->deleteNext(); tok->deleteNext();
if (tok->next()->str() == "(") if (tok->next()->str() == "(")