Fix Travis build
This commit is contained in:
parent
350cba1c59
commit
c6cadf5252
|
@ -329,7 +329,9 @@ void CheckLeakAutoVar::checkScope(const Token * const startToken,
|
||||||
tokens.push(tok3->astOperand2());
|
tokens.push(tok3->astOperand2());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (tok3->str() == "(" && !tok3->astOperand2()->varId()) {
|
if (tok3->str() == "(" &&
|
||||||
|
tok3->astOperand2() &&
|
||||||
|
tok3->astOperand2()->isConstOp()) {
|
||||||
tokens.push(tok3->astOperand2());
|
tokens.push(tok3->astOperand2());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue