From 1068e095e758fcd0bad2e42348aec3a5eb1a9423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 6 Jan 2015 15:16:29 +0100 Subject: [PATCH] Fixed cppcheck warning about iterator post increment --- lib/valueflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index b827db11d..4e5da1649 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -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;