Skip to content

Commit 1068e09

Browse files
committed
Fixed cppcheck warning about iterator post increment
1 parent 6c3b7c1 commit 1068e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ static bool valueFlowForward(Token * const startToken,
837837
if (conditionIsTrue(tok2->next()->astOperand2(), getProgramMemory(tok2, varid, *it)))
838838
values.erase(it++);
839839
else
840-
it++;
840+
++it;
841841
}
842842
if (values.empty())
843843
return false;

0 commit comments

Comments
 (0)