Skip to content

Commit 1fd78d2

Browse files
IOBYTEdanmar
authored andcommitted
CheckPostfixOperator: Use Token::variable. ticket: danmar#4535
1 parent 3e3b728 commit 1fd78d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checkpostfixoperator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void CheckPostfixOperator::postfixOperator()
6161
}
6262

6363
if (result && tok->previous()->varId()) {
64-
const Variable *var = symbolDatabase->getVariableFromVarId(tok->previous()->varId());
64+
const Variable *var = tok->previous()->variable();
6565
if (!var || var->isPointer() || var->isArray() || var->isReference())
6666
continue;
6767

0 commit comments

Comments
 (0)