Refactoring; stricter lambda capture
This commit is contained in:
parent
6c1cc54671
commit
2b336ac147
|
@ -4619,7 +4619,7 @@ static const ValueFlow::Value* getCompareIntValue(const std::list<ValueFlow::Val
|
||||||
if (!value.isIntValue())
|
if (!value.isIntValue())
|
||||||
continue;
|
continue;
|
||||||
if (result)
|
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);
|
return compare(x.intvalue, y.intvalue);
|
||||||
});
|
});
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue