Refactoring: Use Token::isArithmeticalOp instead of hardcoded conditions
This commit is contained in:
parent
f76eb5541c
commit
7d93bfb42e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue