From c3b3b27e57e476ba0ee7060ccd2fccd687188893 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 30 Sep 2024 10:03:46 +0200 Subject: [PATCH] loplugin:noexceptmove (macOS, LLVM 20 trunk libc++) Change-Id: I77a48bbdfcb3d80af69155b11b31ee8e8223bd64 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174261 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- tools/inc/poly.h | 2 +- tools/source/generic/poly.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/inc/poly.h b/tools/inc/poly.h index d1187d5251c1..6576beecaf97 100644 --- a/tools/inc/poly.h +++ b/tools/inc/poly.h @@ -34,7 +34,7 @@ public: ImplPolygon( sal_uInt16 nInitSize ); ImplPolygon( sal_uInt16 nPoints, const Point* pPtAry, const PolyFlags* pInitFlags ); ImplPolygon( const ImplPolygon& rImplPoly ); - ImplPolygon( ImplPolygon&& rImplPoly ); + ImplPolygon( ImplPolygon&& rImplPoly ) noexcept; ImplPolygon( const tools::Rectangle& rRect ); ImplPolygon( const tools::Rectangle& rRect, sal_uInt32 nHorzRound, sal_uInt32 nVertRound); ImplPolygon( const Point& rCenter, tools::Long nRadX, tools::Long nRadY ); diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 8026f238773a..0b8350bd8638 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -84,7 +84,7 @@ ImplPolygon::ImplPolygon( const ImplPolygon& rImpPoly ) mnPoints = rImpPoly.mnPoints; } -ImplPolygon::ImplPolygon(ImplPolygon&& rImpPoly) +ImplPolygon::ImplPolygon(ImplPolygon&& rImpPoly) noexcept { mxPointAry = std::move(rImpPoly.mxPointAry); mxFlagAry = std::move(rImpPoly.mxFlagAry);