CI; Fix Cppcheck self-check, pointer can be const
This commit is contained in:
parent
3312a9f934
commit
dd34d1c123
|
@ -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) {
|
values.remove_if([&](const ValueFlow::Value& v) {
|
||||||
if (kind && v.valueKind != *kind)
|
if (kind && v.valueKind != *kind)
|
||||||
|
|
Loading…
Reference in New Issue