From 6c1c2fea361d5e8fd8ba84a2a5726921dbcf2c5b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 26 Aug 2021 08:50:20 +0300 Subject: [PATCH] Code style. --- src/libs/vlayout/vlayoutpiece.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vlayout/vlayoutpiece.cpp b/src/libs/vlayout/vlayoutpiece.cpp index 78f4f5dec..2a09a91cb 100644 --- a/src/libs/vlayout/vlayoutpiece.cpp +++ b/src/libs/vlayout/vlayoutpiece.cpp @@ -550,7 +550,7 @@ VLayoutPiece VLayoutPiece::Create(const VPiece &piece, vidtype id, const VContai } const VGrainlineData& grainlineGeom = piece.GetGrainlineGeometry(); - if (grainlineGeom.IsVisible() == true) + if (grainlineGeom.IsVisible()) { det.SetGrainline(grainlineGeom, pattern); } @@ -560,7 +560,7 @@ VLayoutPiece VLayoutPiece::Create(const VPiece &piece, vidtype id, const VContai //--------------------------------------------------------------------------------------------------------------------- template -QVector VLayoutPiece::Map(QVector points) const +auto VLayoutPiece::Map(QVector points) const -> QVector { std::transform(points.begin(), points.end(), points.begin(), [this](const T &point) { return d->matrix.map(point); });