Fixed cppcheck warning about iterator post increment
This commit is contained in:
parent
6c3b7c1d0e
commit
1068e095e7
|
@ -837,7 +837,7 @@ static bool valueFlowForward(Token * const startToken,
|
|||
if (conditionIsTrue(tok2->next()->astOperand2(), getProgramMemory(tok2, varid, *it)))
|
||||
values.erase(it++);
|
||||
else
|
||||
it++;
|
||||
++it;
|
||||
}
|
||||
if (values.empty())
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue