Code smell improvement: capture variable by reference
This commit is contained in:
parent
932db63497
commit
7ff8aed6bc
|
@ -893,7 +893,7 @@ void VPGraphicsPiece::PaintPlaceLabels(QPainter *painter, const VPPiecePtr &piec
|
||||||
for (auto &points : shape)
|
for (auto &points : shape)
|
||||||
{
|
{
|
||||||
std::transform(points.begin(), points.end(), points.begin(),
|
std::transform(points.begin(), points.end(), points.begin(),
|
||||||
[matrix](const VLayoutPoint &point) { return VAbstractPiece::MapPoint(point, matrix); });
|
[&matrix](const VLayoutPoint &point) { return VAbstractPiece::MapPoint(point, matrix); });
|
||||||
}
|
}
|
||||||
|
|
||||||
path.addPath(VAbstractPiece::LabelShapePath(piece->MapPlaceLabelShape(shape)));
|
path.addPath(VAbstractPiece::LabelShapePath(piece->MapPlaceLabelShape(shape)));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user