From 03e9c3068a61b547a5ddfbead4aff0f37201a088 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 11 Feb 2019 10:46:37 +0200 Subject: [PATCH] Clazy warning. --HG-- branch : develop --- src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.cpp | 2 +- src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);