diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.cpp index b7510c042..860ff27cb 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.cpp @@ -76,7 +76,7 @@ const QString VToolSpline::OldToolType = QStringLiteral("simple"); * @param initData init data. * @param parent parent object. */ -VToolSpline::VToolSpline(VToolSplineInitData initData, QGraphicsItem *parent) +VToolSpline::VToolSpline(const VToolSplineInitData &initData, QGraphicsItem *parent) : VAbstractSpline(initData.doc, initData.data, initData.id, parent), oldPosition(), moved(false), diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.h b/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.h index fec692e71..30939ea1d 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.h +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.h @@ -117,7 +117,7 @@ private: QSharedPointer oldMoveSpline; QSharedPointer newMoveSpline; - VToolSpline (VToolSplineInitData initData, QGraphicsItem *parent = nullptr ); + VToolSpline (const VToolSplineInitData &initData, QGraphicsItem *parent = nullptr ); bool IsMovable() const; void SetSplineAttributes(QDomElement &domElement, const VSpline &spl);