We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e3b728 commit 1fd78d2Copy full SHA for 1fd78d2
lib/checkpostfixoperator.cpp
@@ -61,7 +61,7 @@ void CheckPostfixOperator::postfixOperator()
61
}
62
63
if (result && tok->previous()->varId()) {
64
- const Variable *var = symbolDatabase->getVariableFromVarId(tok->previous()->varId());
+ const Variable *var = tok->previous()->variable();
65
if (!var || var->isPointer() || var->isArray() || var->isReference())
66
continue;
67
0 commit comments