Fix the second case of error: 'auto' not allowed in lambda parameter.
This commit is contained in:
parent
88ec0f69ca
commit
e3ca47dc10
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user