From c3cbfbaaca13cc6723677cf9cc3a51e1756c6261 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 29 Jan 2022 16:06:01 +0200 Subject: [PATCH] Fix build with Qt 5.6. --- src/libs/vgeometry/vplacelabelitem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/vgeometry/vplacelabelitem.cpp b/src/libs/vgeometry/vplacelabelitem.cpp index ed47e56dc..1b57f2d92 100644 --- a/src/libs/vgeometry/vplacelabelitem.cpp +++ b/src/libs/vgeometry/vplacelabelitem.cpp @@ -364,7 +364,7 @@ PlaceLabelImg VPlaceLabelItem::LabelShape() const QPolygonF shape3(arc.GetPoints()); if (not shape3.isClosed() && not shape3.isEmpty()) { - shape3 << ConstFirst(shape3); + shape3 << ConstFirst(shape3); } return PlaceLabelImg({t.map(shape1), t.map(shape2), t.map(shape3)}); @@ -378,7 +378,7 @@ PlaceLabelImg VPlaceLabelItem::LabelShape() const QPolygonF circle(arc.GetPoints()); if (not circle.isClosed() && not circle.isEmpty()) { - circle << ConstFirst(circle); + circle << ConstFirst(circle); } return PlaceLabelImg({t.map(circle)}); @@ -424,11 +424,11 @@ QPainterPath VPlaceLabelItem::LabelShapePath() const QPainterPath VPlaceLabelItem::LabelShapePath(const PlaceLabelImg &shape) { QPainterPath path; - for (auto &p : shape) + for (const auto &p : shape) { if (not p.isEmpty()) { - path.moveTo(ConstFirst(p)); + path.moveTo(ConstFirst(p)); path.addPolygon(p); } }