Refactoring.
Explicitly capture the required scope variables.
This commit is contained in:
parent
4b985b4ecc
commit
ad1ea7b7fb
|
@ -461,7 +461,7 @@ auto VPPiece::ClosestDistance(const QVector<QPointF> &path1, const QVector<QPoin
|
|||
};
|
||||
|
||||
std::function<QLineF(const QVector<QPointF> &)> const CalculateClosestDistanceForChunk =
|
||||
[&](const QVector<QPointF> &chunk)
|
||||
[path2](const QVector<QPointF> &chunk)
|
||||
{
|
||||
qreal minLocalDistance = std::numeric_limits<qreal>::max();
|
||||
QLineF localClosestDistance;
|
||||
|
|
Loading…
Reference in New Issue
Block a user