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);