CheckPostfixOperator: Use Token::variable. ticket: #4535

This commit is contained in:
Robert Reif 2013-02-05 06:47:08 +01:00 committed by Daniel Marjamäki
parent 3e3b728a9c
commit 1fd78d2b56
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ void CheckPostfixOperator::postfixOperator()
}
if (result && tok->previous()->varId()) {
const Variable *var = symbolDatabase->getVariableFromVarId(tok->previous()->varId());
const Variable *var = tok->previous()->variable();
if (!var || var->isPointer() || var->isArray() || var->isReference())
continue;