Suppress warning object used after it was moved.

This commit is contained in:
Roman Telezhynskyi 2024-02-20 09:17:20 +02:00
parent ff018a3f2c
commit d6fa5ddac0
22 changed files with 22 additions and 22 deletions

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}

View File

@ -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)
{
}