diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 78f683439..283b854c0 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -1467,7 +1467,7 @@ static bool valueFlowForward(Token * const startToken, const Token * const arg = tok2->next()->astOperand2(); if (arg != nullptr && arg->str() != ",") { // Should scope be skipped because variable value is checked? - for (std::list::const_iterator it = values.begin(); it != values.end();) { + for (std::list::iterator it = values.begin(); it != values.end();) { if (conditionIsFalse(arg, getProgramMemory(tok2, varid, *it))) values.erase(it++); else