Refactoring.

Explicitly capture the required scope variables.
This commit is contained in:
Roman Telezhynskyi 2024-04-27 11:48:12 +03:00
parent 4b985b4ecc
commit ad1ea7b7fb

View File

@ -461,7 +461,7 @@ auto VPPiece::ClosestDistance(const QVector<QPointF> &path1, const QVector<QPoin
}; };
std::function<QLineF(const QVector<QPointF> &)> const CalculateClosestDistanceForChunk = std::function<QLineF(const QVector<QPointF> &)> const CalculateClosestDistanceForChunk =
[&](const QVector<QPointF> &chunk) [path2](const QVector<QPointF> &chunk)
{ {
qreal minLocalDistance = std::numeric_limits<qreal>::max(); qreal minLocalDistance = std::numeric_limits<qreal>::max();
QLineF localClosestDistance; QLineF localClosestDistance;