CI; Fix Cppcheck self-check, pointer can be const

This commit is contained in:
Daniel Marjamäki 2021-07-20 11:21:47 +02:00
parent 3312a9f934
commit dd34d1c123
1 changed files with 1 additions and 1 deletions

View File

@ -6211,7 +6211,7 @@ static void valueFlowIterators(TokenList *tokenlist, const Settings *settings)
}
}
static std::list<ValueFlow::Value> getIteratorValues(std::list<ValueFlow::Value> values, ValueFlow::Value::ValueKind* kind = nullptr)
static std::list<ValueFlow::Value> getIteratorValues(std::list<ValueFlow::Value> values, const ValueFlow::Value::ValueKind* kind = nullptr)
{
values.remove_if([&](const ValueFlow::Value& v) {
if (kind && v.valueKind != *kind)