Fix Travis build

This commit is contained in:
Daniel Marjamäki 2015-07-22 01:41:01 +02:00
parent 350cba1c59
commit c6cadf5252
1 changed files with 3 additions and 1 deletions

View File

@ -329,7 +329,9 @@ void CheckLeakAutoVar::checkScope(const Token * const startToken,
tokens.push(tok3->astOperand2());
continue;
}
if (tok3->str() == "(" && !tok3->astOperand2()->varId()) {
if (tok3->str() == "(" &&
tok3->astOperand2() &&
tok3->astOperand2()->isConstOp()) {
tokens.push(tok3->astOperand2());
continue;
}