Refactoring. Define default values.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-26 19:14:05 +02:00
parent e7bd65bde9
commit ed23a4ee71

View File

@ -44,17 +44,6 @@ class VLayoutPaperData : public QSharedData
{ {
public: public:
VLayoutPaperData() VLayoutPaperData()
: details(QVector<VLayoutPiece>()),
globalContour(VContour()),
paperIndex(0),
frame(0),
layoutWidth(0),
globalRotate(true),
localRotate(true),
globalRotationIncrease(180),
localRotationIncrease(180),
saveLength(false),
followGrainline(false)
{} {}
VLayoutPaperData(int height, VLayoutPaperData(int height,
@ -90,20 +79,20 @@ public:
~VLayoutPaperData() {} ~VLayoutPaperData() {}
/** @brief details list of arranged details. */ /** @brief details list of arranged details. */
QVector<VLayoutPiece> details; QVector<VLayoutPiece> details{};
/** @brief globalContour list of global points contour. */ /** @brief globalContour list of global points contour. */
VContour globalContour; VContour globalContour{};
quint32 paperIndex; quint32 paperIndex{0};
quint32 frame; quint32 frame{0};
qreal layoutWidth; qreal layoutWidth{0};
bool globalRotate; bool globalRotate{true};
bool localRotate; bool localRotate{true};
int globalRotationIncrease; int globalRotationIncrease{180};
int localRotationIncrease; int localRotationIncrease{180};
bool saveLength; bool saveLength{false};
bool followGrainline; bool followGrainline{false};
private: private:
VLayoutPaperData& operator=(const VLayoutPaperData&) Q_DECL_EQ_DELETE; VLayoutPaperData& operator=(const VLayoutPaperData&) Q_DECL_EQ_DELETE;