From d6fa5ddac0585a3dfaf46b9520cfddc4d612fbbe Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 20 Feb 2024 09:17:20 +0200 Subject: [PATCH] Suppress warning object used after it was moved. --- src/libs/vgeometry/vabstractarc.cpp | 2 +- src/libs/vgeometry/vabstractcurve.cpp | 2 +- src/libs/vgeometry/varc.cpp | 2 +- src/libs/vgeometry/vcubicbezier.cpp | 2 +- src/libs/vgeometry/vcubicbezierpath.cpp | 2 +- src/libs/vgeometry/vellipticalarc.cpp | 2 +- src/libs/vgeometry/vplacelabelitem.cpp | 2 +- src/libs/vgeometry/vpointf.cpp | 2 +- src/libs/vgeometry/vspline.cpp | 2 +- src/libs/vgeometry/vsplinepath.cpp | 2 +- src/libs/vlayout/vlayoutpiece.cpp | 2 +- src/libs/vpatterndb/floatItemData/vgrainlinedata.cpp | 2 +- src/libs/vpatterndb/floatItemData/vpatternlabeldata.cpp | 2 +- src/libs/vpatterndb/floatItemData/vpiecelabeldata.cpp | 2 +- src/libs/vpatterndb/variables/vcurvevariable.cpp | 2 +- src/libs/vpatterndb/variables/vincrement.cpp | 2 +- src/libs/vpatterndb/variables/vlineangle.cpp | 2 +- src/libs/vpatterndb/variables/vlinelength.cpp | 2 +- src/libs/vpatterndb/variables/vmeasurement.cpp | 2 +- src/libs/vpatterndb/variables/vpiecearea.cpp | 2 +- src/libs/vpatterndb/variables/vvariable.cpp | 2 +- src/libs/vpatterndb/vpiece.cpp | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/libs/vgeometry/vabstractarc.cpp b/src/libs/vgeometry/vabstractarc.cpp index 0ca3ba40e..8d6a9925a 100644 --- a/src/libs/vgeometry/vabstractarc.cpp +++ b/src/libs/vgeometry/vabstractarc.cpp @@ -89,7 +89,7 @@ auto VAbstractArc::operator=(const VAbstractArc &arc) -> VAbstractArc & //--------------------------------------------------------------------------------------------------------------------- VAbstractArc::VAbstractArc(VAbstractArc &&arc) noexcept : VAbstractCurve(std::move(arc)), - d(std::move(arc.d)) + d(std::move(arc.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vgeometry/vabstractcurve.cpp b/src/libs/vgeometry/vabstractcurve.cpp index cc4be22d3..1c3575284 100644 --- a/src/libs/vgeometry/vabstractcurve.cpp +++ b/src/libs/vgeometry/vabstractcurve.cpp @@ -99,7 +99,7 @@ auto VAbstractCurve::operator=(const VAbstractCurve &curve) -> VAbstractCurve & //--------------------------------------------------------------------------------------------------------------------- VAbstractCurve::VAbstractCurve(VAbstractCurve &&curve) noexcept : VGObject(std::move(curve)), - d(std::move(curve.d)) + d(std::move(curve.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vgeometry/varc.cpp b/src/libs/vgeometry/varc.cpp index 10572d037..1d09729fb 100644 --- a/src/libs/vgeometry/varc.cpp +++ b/src/libs/vgeometry/varc.cpp @@ -121,7 +121,7 @@ auto VArc::operator=(const VArc &arc) -> VArc & //--------------------------------------------------------------------------------------------------------------------- VArc::VArc(VArc &&arc) noexcept : VAbstractArc(std::move(arc)), - d(std::move(arc.d)) + d(std::move(arc.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vgeometry/vcubicbezier.cpp b/src/libs/vgeometry/vcubicbezier.cpp index c67383433..acd31978c 100644 --- a/src/libs/vgeometry/vcubicbezier.cpp +++ b/src/libs/vgeometry/vcubicbezier.cpp @@ -66,7 +66,7 @@ auto VCubicBezier::operator=(const VCubicBezier &curve) -> VCubicBezier & //--------------------------------------------------------------------------------------------------------------------- VCubicBezier::VCubicBezier(VCubicBezier &&curve) noexcept : VAbstractCubicBezier(std::move(curve)), - d(std::move(curve.d)) + d(std::move(curve.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vgeometry/vcubicbezierpath.cpp b/src/libs/vgeometry/vcubicbezierpath.cpp index c1061b869..61a3d020f 100644 --- a/src/libs/vgeometry/vcubicbezierpath.cpp +++ b/src/libs/vgeometry/vcubicbezierpath.cpp @@ -77,7 +77,7 @@ auto VCubicBezierPath::operator=(const VCubicBezierPath &curve) -> VCubicBezierP //--------------------------------------------------------------------------------------------------------------------- VCubicBezierPath::VCubicBezierPath(VCubicBezierPath &&curve) noexcept : VAbstractCubicBezierPath(std::move(curve)), - d(std::move(curve.d)) + d(std::move(curve.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vgeometry/vellipticalarc.cpp b/src/libs/vgeometry/vellipticalarc.cpp index 83d31387e..543dff413 100644 --- a/src/libs/vgeometry/vellipticalarc.cpp +++ b/src/libs/vgeometry/vellipticalarc.cpp @@ -323,7 +323,7 @@ auto VEllipticalArc::operator=(const VEllipticalArc &arc) -> VEllipticalArc & //--------------------------------------------------------------------------------------------------------------------- VEllipticalArc::VEllipticalArc(VEllipticalArc &&arc) noexcept : VAbstractArc(std::move(arc)), - d(std::move(arc.d)) + d(std::move(arc.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vgeometry/vplacelabelitem.cpp b/src/libs/vgeometry/vplacelabelitem.cpp index f778b9da2..4e671bd93 100644 --- a/src/libs/vgeometry/vplacelabelitem.cpp +++ b/src/libs/vgeometry/vplacelabelitem.cpp @@ -238,7 +238,7 @@ auto VPlaceLabelItem::operator=(const VPlaceLabelItem &item) -> VPlaceLabelItem //--------------------------------------------------------------------------------------------------------------------- VPlaceLabelItem::VPlaceLabelItem(VPlaceLabelItem &&item) noexcept : VPointF(std::move(item)), - d(std::move(item.d)) + d(std::move(item.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vgeometry/vpointf.cpp b/src/libs/vgeometry/vpointf.cpp index 415095d33..e88faaeb1 100644 --- a/src/libs/vgeometry/vpointf.cpp +++ b/src/libs/vgeometry/vpointf.cpp @@ -114,7 +114,7 @@ auto VPointF::operator=(const VPointF &point) -> VPointF & //--------------------------------------------------------------------------------------------------------------------- VPointF::VPointF(VPointF &&point) noexcept : VGObject(std::move(point)), - d(std::move(point.d)) + d(std::move(point.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vgeometry/vspline.cpp b/src/libs/vgeometry/vspline.cpp index 86ae459a8..f9e5ba059 100644 --- a/src/libs/vgeometry/vspline.cpp +++ b/src/libs/vgeometry/vspline.cpp @@ -269,7 +269,7 @@ auto VSpline::operator=(const VSpline &spline) -> VSpline & //--------------------------------------------------------------------------------------------------------------------- VSpline::VSpline(VSpline &&spline) noexcept : VAbstractCubicBezier(std::move(spline)), - d(std::move(spline.d)) + d(std::move(spline.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vgeometry/vsplinepath.cpp b/src/libs/vgeometry/vsplinepath.cpp index d0a310892..a10d53f65 100644 --- a/src/libs/vgeometry/vsplinepath.cpp +++ b/src/libs/vgeometry/vsplinepath.cpp @@ -315,7 +315,7 @@ auto VSplinePath::operator=(const VSplinePath &path) -> VSplinePath & //--------------------------------------------------------------------------------------------------------------------- VSplinePath::VSplinePath(VSplinePath &&splPath) noexcept : VAbstractCubicBezierPath(std::move(splPath)), - d(std::move(splPath.d)) + d(std::move(splPath.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vlayout/vlayoutpiece.cpp b/src/libs/vlayout/vlayoutpiece.cpp index 6e72439db..4787b213f 100644 --- a/src/libs/vlayout/vlayoutpiece.cpp +++ b/src/libs/vlayout/vlayoutpiece.cpp @@ -613,7 +613,7 @@ auto VLayoutPiece::operator=(const VLayoutPiece &detail) -> VLayoutPiece & //--------------------------------------------------------------------------------------------------------------------- VLayoutPiece::VLayoutPiece(VLayoutPiece &&detail) noexcept : VAbstractPiece(std::move(detail)), - d(std::move(detail.d)) + d(std::move(detail.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/floatItemData/vgrainlinedata.cpp b/src/libs/vpatterndb/floatItemData/vgrainlinedata.cpp index 861201dbf..48900a506 100644 --- a/src/libs/vpatterndb/floatItemData/vgrainlinedata.cpp +++ b/src/libs/vpatterndb/floatItemData/vgrainlinedata.cpp @@ -57,7 +57,7 @@ auto VGrainlineData::operator=(const VGrainlineData &data) -> VGrainlineData & //--------------------------------------------------------------------------------------------------------------------- VGrainlineData::VGrainlineData(VGrainlineData &&data) noexcept : VAbstractFloatItemData(std::move(data)), - d(std::move(data.d)) + d(std::move(data.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/floatItemData/vpatternlabeldata.cpp b/src/libs/vpatterndb/floatItemData/vpatternlabeldata.cpp index 4fce0c661..48bfb819d 100644 --- a/src/libs/vpatterndb/floatItemData/vpatternlabeldata.cpp +++ b/src/libs/vpatterndb/floatItemData/vpatternlabeldata.cpp @@ -55,7 +55,7 @@ auto VPatternLabelData::operator=(const VPatternLabelData &data) -> VPatternLabe //--------------------------------------------------------------------------------------------------------------------- VPatternLabelData::VPatternLabelData(VPatternLabelData &&data) noexcept : VAbstractFloatItemData(std::move(data)), - d(std::move(data.d)) + d(std::move(data.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/floatItemData/vpiecelabeldata.cpp b/src/libs/vpatterndb/floatItemData/vpiecelabeldata.cpp index 575282185..991a19fc9 100644 --- a/src/libs/vpatterndb/floatItemData/vpiecelabeldata.cpp +++ b/src/libs/vpatterndb/floatItemData/vpiecelabeldata.cpp @@ -56,7 +56,7 @@ auto VPieceLabelData::operator=(const VPieceLabelData &data) -> VPieceLabelData //--------------------------------------------------------------------------------------------------------------------- VPieceLabelData::VPieceLabelData(VPieceLabelData &&data) noexcept : VPatternLabelData(std::move(data)), - d(std::move(data.d)) + d(std::move(data.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/variables/vcurvevariable.cpp b/src/libs/vpatterndb/variables/vcurvevariable.cpp index ac075c019..bdefc3b4e 100644 --- a/src/libs/vpatterndb/variables/vcurvevariable.cpp +++ b/src/libs/vpatterndb/variables/vcurvevariable.cpp @@ -64,7 +64,7 @@ auto VCurveVariable::operator=(const VCurveVariable &var) -> VCurveVariable & //--------------------------------------------------------------------------------------------------------------------- VCurveVariable::VCurveVariable(VCurveVariable &&var) noexcept : VInternalVariable(std::move(var)), - d(std::move(var.d)) + d(std::move(var.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/variables/vincrement.cpp b/src/libs/vpatterndb/variables/vincrement.cpp index 77546f674..645904bed 100644 --- a/src/libs/vpatterndb/variables/vincrement.cpp +++ b/src/libs/vpatterndb/variables/vincrement.cpp @@ -73,7 +73,7 @@ auto VIncrement::operator=(const VIncrement &incr) -> VIncrement & //--------------------------------------------------------------------------------------------------------------------- VIncrement::VIncrement(VIncrement &&incr) noexcept : VVariable(std::move(incr)), - d(std::move(incr.d)) + d(std::move(incr.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/variables/vlineangle.cpp b/src/libs/vpatterndb/variables/vlineangle.cpp index 7672db60a..2732e4465 100644 --- a/src/libs/vpatterndb/variables/vlineangle.cpp +++ b/src/libs/vpatterndb/variables/vlineangle.cpp @@ -81,7 +81,7 @@ auto VLineAngle::operator=(const VLineAngle &var) -> VLineAngle & //--------------------------------------------------------------------------------------------------------------------- VLineAngle::VLineAngle(VLineAngle &&var) noexcept : VInternalVariable(std::move(var)), - d(std::move(var.d)) + d(std::move(var.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/variables/vlinelength.cpp b/src/libs/vpatterndb/variables/vlinelength.cpp index c24ef46b8..ec7158dab 100644 --- a/src/libs/vpatterndb/variables/vlinelength.cpp +++ b/src/libs/vpatterndb/variables/vlinelength.cpp @@ -79,7 +79,7 @@ auto VLengthLine::operator=(const VLengthLine &var) -> VLengthLine & //--------------------------------------------------------------------------------------------------------------------- VLengthLine::VLengthLine(VLengthLine &&var) noexcept : VInternalVariable(std::move(var)), - d(std::move(var.d)) + d(std::move(var.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/variables/vmeasurement.cpp b/src/libs/vpatterndb/variables/vmeasurement.cpp index ab53f67b7..b45c18ddd 100644 --- a/src/libs/vpatterndb/variables/vmeasurement.cpp +++ b/src/libs/vpatterndb/variables/vmeasurement.cpp @@ -99,7 +99,7 @@ auto VMeasurement::operator=(const VMeasurement &m) -> VMeasurement & //--------------------------------------------------------------------------------------------------------------------- VMeasurement::VMeasurement(VMeasurement &&m) noexcept : VVariable(std::move(m)), - d(std::move(m.d)) + d(std::move(m.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/variables/vpiecearea.cpp b/src/libs/vpatterndb/variables/vpiecearea.cpp index 1b601b549..f0438ca75 100644 --- a/src/libs/vpatterndb/variables/vpiecearea.cpp +++ b/src/libs/vpatterndb/variables/vpiecearea.cpp @@ -93,7 +93,7 @@ VPieceArea::~VPieceArea() = default; //--------------------------------------------------------------------------------------------------------------------- VPieceArea::VPieceArea(VPieceArea &&var) noexcept : VInternalVariable(std::move(var)), - d(std::move(var.d)) + d(std::move(var.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/variables/vvariable.cpp b/src/libs/vpatterndb/variables/vvariable.cpp index 0ac3b5f8b..ddca8ef92 100644 --- a/src/libs/vpatterndb/variables/vvariable.cpp +++ b/src/libs/vpatterndb/variables/vvariable.cpp @@ -65,7 +65,7 @@ auto VVariable::operator=(const VVariable &var) -> VVariable & //--------------------------------------------------------------------------------------------------------------------- VVariable::VVariable(VVariable &&var) noexcept : VInternalVariable(std::move(var)), - d(std::move(var.d)) + d(std::move(var.d)) // NOLINT(bugprone-use-after-move) { } diff --git a/src/libs/vpatterndb/vpiece.cpp b/src/libs/vpatterndb/vpiece.cpp index f343a9d3d..c1e5c01e9 100644 --- a/src/libs/vpatterndb/vpiece.cpp +++ b/src/libs/vpatterndb/vpiece.cpp @@ -142,7 +142,7 @@ auto VPiece::operator=(const VPiece &piece) -> VPiece & //--------------------------------------------------------------------------------------------------------------------- VPiece::VPiece(VPiece &&piece) noexcept : VAbstractPiece(std::move(piece)), - d(std::move(piece.d)) + d(std::move(piece.d)) // NOLINT(bugprone-use-after-move) { }