Code style.

This commit is contained in:
Roman Telezhynskyi 2021-08-26 08:50:20 +03:00
parent 54710608d6
commit 6c1c2fea36

View File

@ -550,7 +550,7 @@ VLayoutPiece VLayoutPiece::Create(const VPiece &piece, vidtype id, const VContai
} }
const VGrainlineData& grainlineGeom = piece.GetGrainlineGeometry(); const VGrainlineData& grainlineGeom = piece.GetGrainlineGeometry();
if (grainlineGeom.IsVisible() == true) if (grainlineGeom.IsVisible())
{ {
det.SetGrainline(grainlineGeom, pattern); det.SetGrainline(grainlineGeom, pattern);
} }
@ -560,7 +560,7 @@ VLayoutPiece VLayoutPiece::Create(const VPiece &piece, vidtype id, const VContai
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
template <class T> template <class T>
QVector<T> VLayoutPiece::Map(QVector<T> points) const auto VLayoutPiece::Map(QVector<T> points) const -> QVector<T>
{ {
std::transform(points.begin(), points.end(), points.begin(), std::transform(points.begin(), points.end(), points.begin(),
[this](const T &point) { return d->matrix.map(point); }); [this](const T &point) { return d->matrix.map(point); });