CheckPostfixOperator: Use Token::variable. ticket: #4535
This commit is contained in:
parent
3e3b728a9c
commit
1fd78d2b56
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue