Refactoring: Use Token::isArithmeticalOp instead of hardcoded conditions

This commit is contained in:
Daniel Marjamäki 2011-04-09 18:50:05 +02:00
parent f76eb5541c
commit 7d93bfb42e
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void CheckOther::clarifyCalculation()
continue;
// calculation
if (!Token::Match(cond, "[+-*/]") && !Token::Match(cond, "<<|>>"))
if (!cond->isArithmeticalOp())
continue;
const std::string &op = cond->str();