diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index da087f6df..87f73471e 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -6211,7 +6211,7 @@ static void valueFlowIterators(TokenList *tokenlist, const Settings *settings) } } -static std::list getIteratorValues(std::list values, ValueFlow::Value::ValueKind* kind = nullptr) +static std::list getIteratorValues(std::list values, const ValueFlow::Value::ValueKind* kind = nullptr) { values.remove_if([&](const ValueFlow::Value& v) { if (kind && v.valueKind != *kind)