Fix the second case of error: 'auto' not allowed in lambda parameter.

This commit is contained in:
Roman Telezhynskyi 2020-09-22 10:23:27 +03:00
parent 88ec0f69ca
commit e3ca47dc10

View File

@ -1409,7 +1409,7 @@ int VLayoutPiece::EdgeByPoint(const QVector<QPointF> &path, const QPointF &p1) c
const auto points = Map(path); const auto points = Map(path);
const auto posIter = std::find_if(points.cbegin(), points.cend(), const auto posIter = std::find_if(points.cbegin(), points.cend(),
[&p1](const auto &point){ return VFuzzyComparePoints(point, p1); }); [&p1](const QPointF &point){ return VFuzzyComparePoints(point, p1); });
if (posIter != points.cend()) if (posIter != points.cend())
{ {
return static_cast<int>(posIter - points.cbegin() + 1); return static_cast<int>(posIter - points.cbegin() + 1);