Refactoring; stricter lambda capture

This commit is contained in:
Daniel Marjamäki 2020-02-01 08:28:18 +01:00
parent 6c1cc54671
commit 2b336ac147
1 changed files with 1 additions and 1 deletions

View File

@ -4619,7 +4619,7 @@ static const ValueFlow::Value* getCompareIntValue(const std::list<ValueFlow::Val
if (!value.isIntValue())
continue;
if (result)
result = &std::min(value, *result, [&](const ValueFlow::Value& x, const ValueFlow::Value& y) {
result = &std::min(value, *result, [compare](const ValueFlow::Value& x, const ValueFlow::Value& y) {
return compare(x.intvalue, y.intvalue);
});
else