From dd34d1c12332463929a171c453309abb09db84d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 20 Jul 2021 11:21:47 +0200 Subject: [PATCH] CI; Fix Cppcheck self-check, pointer can be const --- lib/valueflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)