diff options
70 files changed, 131 insertions, 132 deletions
diff --git a/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx b/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx index 047c434f87fc..8a28e975c256 100644 --- a/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx +++ b/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx @@ -45,7 +45,7 @@ ViewElementListProvider::ViewElementListProvider( DrawModelWrapper* pDrawModelWr { } -ViewElementListProvider::ViewElementListProvider( ViewElementListProvider&& rOther ) +ViewElementListProvider::ViewElementListProvider(ViewElementListProvider&& rOther) noexcept { m_pDrawModelWrapper = rOther.m_pDrawModelWrapper; m_pFontList = std::move(rOther.m_pFontList); diff --git a/chart2/source/controller/inc/ViewElementListProvider.hxx b/chart2/source/controller/inc/ViewElementListProvider.hxx index 07da949907af..f229a514b60a 100644 --- a/chart2/source/controller/inc/ViewElementListProvider.hxx +++ b/chart2/source/controller/inc/ViewElementListProvider.hxx @@ -35,7 +35,7 @@ class ViewElementListProvider final { public: ViewElementListProvider( DrawModelWrapper* pDrawModelWrapper ); - ViewElementListProvider( ViewElementListProvider&& ); + ViewElementListProvider(ViewElementListProvider&&) noexcept; ~ViewElementListProvider(); XColorListRef GetColorTable() const; diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index e95961677d42..cacba0bab258 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -106,10 +106,10 @@ VDataSeriesGroup::VDataSeriesGroup( std::unique_ptr<VDataSeries> pSeries ) m_aSeriesVector[0] = std::move(pSeries); } -VDataSeriesGroup::VDataSeriesGroup( VDataSeriesGroup&& other ) +VDataSeriesGroup::VDataSeriesGroup(VDataSeriesGroup&& other) noexcept : m_aSeriesVector( std::move(other.m_aSeriesVector) ) , m_bMaxPointCountDirty( other.m_bMaxPointCountDirty ) - , m_nMaxPointCount( std::move(other.m_nMaxPointCount) ) + , m_nMaxPointCount( other.m_nMaxPointCount ) , m_aListOfCachedYValues( std::move(other.m_aListOfCachedYValues) ) { } diff --git a/chart2/source/view/inc/VSeriesPlotter.hxx b/chart2/source/view/inc/VSeriesPlotter.hxx index ab6f8a81005b..572e428ac14a 100644 --- a/chart2/source/view/inc/VSeriesPlotter.hxx +++ b/chart2/source/view/inc/VSeriesPlotter.hxx @@ -85,7 +85,7 @@ class VDataSeriesGroup final public: VDataSeriesGroup() = delete; VDataSeriesGroup( std::unique_ptr<VDataSeries> pSeries ); - VDataSeriesGroup( VDataSeriesGroup&& ); + VDataSeriesGroup(VDataSeriesGroup&&) noexcept; ~VDataSeriesGroup(); void addSeries( std::unique_ptr<VDataSeries> pSeries );//takes ownership of pSeries diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx index 777e75e57a86..768f1f610e5d 100644 --- a/comphelper/source/misc/namedvaluecollection.cxx +++ b/comphelper/source/misc/namedvaluecollection.cxx @@ -64,7 +64,7 @@ namespace comphelper *this = _rCopySource; } - NamedValueCollection::NamedValueCollection( NamedValueCollection&& _rCopySource ) + NamedValueCollection::NamedValueCollection(NamedValueCollection&& _rCopySource) noexcept :m_pImpl( std::move(_rCopySource.m_pImpl) ) { } @@ -75,7 +75,7 @@ namespace comphelper return *this; } - NamedValueCollection& NamedValueCollection::operator=( NamedValueCollection&& i_rCopySource ) + NamedValueCollection& NamedValueCollection::operator=(NamedValueCollection&& i_rCopySource) noexcept { m_pImpl = std::move(i_rCopySource.m_pImpl); return *this; diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx index 51adab4f3e98..bf79ffd5ac7b 100644 --- a/connectivity/source/commontools/FValue.cxx +++ b/connectivity/source/commontools/FValue.cxx @@ -259,7 +259,7 @@ void ORowSetValue::setTypeKind(sal_Int32 _eType) } -void ORowSetValue::free() +void ORowSetValue::free() noexcept { if(!m_bNull) { @@ -470,7 +470,7 @@ ORowSetValue& ORowSetValue::operator=(const ORowSetValue& _rRH) return *this; } -ORowSetValue& ORowSetValue::operator=(ORowSetValue&& _rRH) +ORowSetValue& ORowSetValue::operator=(ORowSetValue&& _rRH) noexcept { if ( m_eTypeKind != _rRH.m_eTypeKind || !m_bNull) free(); diff --git a/connectivity/source/commontools/dbmetadata.cxx b/connectivity/source/commontools/dbmetadata.cxx index 026381e0377b..d345aec78cac 100644 --- a/connectivity/source/commontools/dbmetadata.cxx +++ b/connectivity/source/commontools/dbmetadata.cxx @@ -188,7 +188,7 @@ namespace dbtools { } - DatabaseMetaData::DatabaseMetaData( DatabaseMetaData&& _copyFrom ) + DatabaseMetaData::DatabaseMetaData(DatabaseMetaData&& _copyFrom) noexcept :m_pImpl(std::move(_copyFrom.m_pImpl)) { } @@ -202,7 +202,7 @@ namespace dbtools return *this; } - DatabaseMetaData& DatabaseMetaData::operator=( DatabaseMetaData&& _copyFrom ) + DatabaseMetaData& DatabaseMetaData::operator=(DatabaseMetaData&& _copyFrom) noexcept { m_pImpl = std::move(_copyFrom.m_pImpl); return *this; diff --git a/connectivity/source/drivers/dbase/dindexnode.cxx b/connectivity/source/drivers/dbase/dindexnode.cxx index be85e87096b4..10231a835ff9 100644 --- a/connectivity/source/drivers/dbase/dindexnode.cxx +++ b/connectivity/source/drivers/dbase/dindexnode.cxx @@ -809,7 +809,7 @@ ONDXPagePtr::ONDXPagePtr() { } -ONDXPagePtr::ONDXPagePtr(ONDXPagePtr&& rRef) +ONDXPagePtr::ONDXPagePtr(ONDXPagePtr&& rRef) noexcept { mpPage = rRef.mpPage; rRef.mpPage = nullptr; diff --git a/connectivity/source/inc/dbase/dindexnode.hxx b/connectivity/source/inc/dbase/dindexnode.hxx index 8a8110253edc..6d891239e8ab 100644 --- a/connectivity/source/inc/dbase/dindexnode.hxx +++ b/connectivity/source/inc/dbase/dindexnode.hxx @@ -92,7 +92,7 @@ namespace connectivity public: ONDXPagePtr(); - ONDXPagePtr(ONDXPagePtr&& rObj); + ONDXPagePtr(ONDXPagePtr&& rObj) noexcept; ONDXPagePtr(ONDXPagePtr const & rRef); ONDXPagePtr(ONDXPage* pRefPage); ~ONDXPagePtr(); diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 0d49c25681b6..6dbfcc57f2ca 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -2819,7 +2819,7 @@ SvxBrushItem::SvxBrushItem(const SvxBrushItem& rItem) { } -SvxBrushItem::SvxBrushItem(SvxBrushItem&& rItem) +SvxBrushItem::SvxBrushItem(SvxBrushItem&& rItem) noexcept : SfxPoolItem(std::move(rItem)) , aColor(std::move(rItem.aColor)) , nShadingValue(std::move(rItem.nShadingValue)) diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx index fdcf218f4826..3f121bc4d5bd 100644 --- a/extensions/source/abpilot/datasourcehandling.cxx +++ b/extensions/source/abpilot/datasourcehandling.cxx @@ -320,7 +320,7 @@ namespace abp return *this; } - ODataSource& ODataSource::operator=( ODataSource&& _rSource ) + ODataSource& ODataSource::operator=(ODataSource&& _rSource) noexcept { m_pImpl = std::move(_rSource.m_pImpl); return *this; diff --git a/extensions/source/abpilot/datasourcehandling.hxx b/extensions/source/abpilot/datasourcehandling.hxx index f5037915bdf2..00da09f7941d 100644 --- a/extensions/source/abpilot/datasourcehandling.hxx +++ b/extensions/source/abpilot/datasourcehandling.hxx @@ -117,7 +117,7 @@ namespace abp ODataSource& operator=( const ODataSource& _rSource ); /// move assignment - ODataSource& operator=( ODataSource&& _rSource ); + ODataSource& operator=(ODataSource&& _rSource) noexcept; /// checks whether or not the object represents a valid data source bool isValid() const; diff --git a/filter/source/svg/svgwriter.hxx b/filter/source/svg/svgwriter.hxx index 68339d2a43c2..f6ea72fd539c 100644 --- a/filter/source/svg/svgwriter.hxx +++ b/filter/source/svg/svgwriter.hxx @@ -112,7 +112,7 @@ struct PartialState , mnRegionClipPathId( 0 ) {} - PartialState(PartialState&& aPartialState) + PartialState(PartialState&& aPartialState) noexcept : meFlags( aPartialState.meFlags ) , mupFont( std::move( aPartialState.mupFont ) ) , mnRegionClipPathId( aPartialState.mnRegionClipPathId ) diff --git a/include/canvas/vclwrapper.hxx b/include/canvas/vclwrapper.hxx index 0a80cb282986..3913219143bc 100644 --- a/include/canvas/vclwrapper.hxx +++ b/include/canvas/vclwrapper.hxx @@ -78,10 +78,9 @@ namespace canvas mpWrappee = nullptr; } - VCLObject( VCLObject&& rOrig ) - : mpWrappee(rOrig.mpWrappee) + VCLObject(VCLObject&& rOrig) noexcept + : mpWrappee(std::move(rOrig.mpWrappee)) { - rOrig.mpWrappee = nullptr; } // This object has value semantics, thus, forward copy @@ -111,7 +110,7 @@ namespace canvas return *this; } - VCLObject& operator=( VCLObject&& rhs ) + VCLObject& operator=(VCLObject&& rhs) noexcept { std::swap(mpWrappee, rhs.mpWrappee); diff --git a/include/comphelper/namedvaluecollection.hxx b/include/comphelper/namedvaluecollection.hxx index 46a2594d1028..b6986b13033b 100644 --- a/include/comphelper/namedvaluecollection.hxx +++ b/include/comphelper/namedvaluecollection.hxx @@ -48,10 +48,10 @@ namespace comphelper NamedValueCollection(); NamedValueCollection( const NamedValueCollection& _rCopySource ); - NamedValueCollection( NamedValueCollection&& _rCopySource ); + NamedValueCollection(NamedValueCollection&& _rCopySource) noexcept; NamedValueCollection& operator=( const NamedValueCollection& i_rCopySource ); - NamedValueCollection& operator=( NamedValueCollection&& i_rCopySource ); + NamedValueCollection& operator=(NamedValueCollection&& i_rCopySource) noexcept; /** constructs a collection @param _rElements diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx index e79ef73f0a13..c9f9c86cbb0b 100644 --- a/include/connectivity/FValue.hxx +++ b/include/connectivity/FValue.hxx @@ -74,7 +74,7 @@ namespace connectivity bool m_bModified : 1; // value was changed bool m_bSigned : 1; // value is signed - void free(); + void free() noexcept; public: ORowSetValue() @@ -98,7 +98,7 @@ namespace connectivity operator=(_rRH); } - ORowSetValue(ORowSetValue&& _rRH) + ORowSetValue(ORowSetValue&& _rRH) noexcept :m_eTypeKind(css::sdbc::DataType::VARCHAR) ,m_bNull(true) ,m_bBound(true) @@ -106,7 +106,7 @@ namespace connectivity ,m_bSigned(true) { m_aValue.m_pString = nullptr; - operator=(_rRH); + operator=(std::move(_rRH)); } ORowSetValue(const OUString& _rRH) @@ -279,7 +279,7 @@ namespace connectivity } ORowSetValue& operator=(const ORowSetValue& _rRH); - ORowSetValue& operator=(ORowSetValue&& _rRH); + ORowSetValue& operator=(ORowSetValue&& _rRH) noexcept; // simple types ORowSetValue& operator=(bool _rRH); diff --git a/include/connectivity/dbmetadata.hxx b/include/connectivity/dbmetadata.hxx index 085b30b52875..17a392dfe568 100644 --- a/include/connectivity/dbmetadata.hxx +++ b/include/connectivity/dbmetadata.hxx @@ -72,8 +72,8 @@ namespace dbtools const css::uno::Reference< css::sdbc::XConnection >& _connection ); DatabaseMetaData( const DatabaseMetaData& _copyFrom ); DatabaseMetaData& operator=( const DatabaseMetaData& _copyFrom ); - DatabaseMetaData( DatabaseMetaData&& _copyFrom ); - DatabaseMetaData& operator=( DatabaseMetaData&& _copyFrom ); + DatabaseMetaData(DatabaseMetaData&& _copyFrom) noexcept; + DatabaseMetaData& operator=(DatabaseMetaData&& _copyFrom) noexcept; ~DatabaseMetaData(); diff --git a/include/drawinglayer/primitive2d/baseprimitive2d.hxx b/include/drawinglayer/primitive2d/baseprimitive2d.hxx index e7e83d9e06c3..0d0921850588 100644 --- a/include/drawinglayer/primitive2d/baseprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/baseprimitive2d.hxx @@ -76,7 +76,7 @@ namespace drawinglayer { namespace primitive2d { explicit Primitive2DContainer( size_type count ) : deque(count) {} virtual ~Primitive2DContainer() override; Primitive2DContainer( const Primitive2DContainer& other ) : deque(other) {} - Primitive2DContainer( Primitive2DContainer&& other ) : deque(std::move(other)) {} + Primitive2DContainer( Primitive2DContainer&& other ) noexcept : deque(std::move(other)) {} Primitive2DContainer( const std::deque< Primitive2DReference >& other ) : deque(other) {} Primitive2DContainer( std::initializer_list<Primitive2DReference> init ) : deque(init) {} template <class Iter> @@ -87,7 +87,7 @@ namespace drawinglayer { namespace primitive2d { virtual void append(Primitive2DContainer&& rSource) override; void append(const Primitive2DSequence& rSource); Primitive2DContainer& operator=(const Primitive2DContainer& r) { deque::operator=(r); return *this; } - Primitive2DContainer& operator=(Primitive2DContainer&& r) { deque::operator=(std::move(r)); return *this; } + Primitive2DContainer& operator=(Primitive2DContainer&& r) noexcept { deque::operator=(std::move(r)); return *this; } bool operator==(const Primitive2DContainer& rB) const; bool operator!=(const Primitive2DContainer& rB) const { return !operator==(rB); } basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& aViewInformation) const; diff --git a/include/drawinglayer/primitive3d/baseprimitive3d.hxx b/include/drawinglayer/primitive3d/baseprimitive3d.hxx index 8d4f683ef267..2d2fd1b68963 100644 --- a/include/drawinglayer/primitive3d/baseprimitive3d.hxx +++ b/include/drawinglayer/primitive3d/baseprimitive3d.hxx @@ -60,14 +60,14 @@ namespace drawinglayer { namespace primitive3d { explicit Primitive3DContainer() {} explicit Primitive3DContainer( size_type count ) : deque(count) {} Primitive3DContainer( const Primitive3DContainer& other ) : deque(other) {} - Primitive3DContainer( Primitive3DContainer&& other ) : deque(std::move(other)) {} + Primitive3DContainer( Primitive3DContainer&& other ) noexcept : deque(std::move(other)) {} Primitive3DContainer( std::initializer_list<Primitive3DReference> init ) : deque(init) {} template <class Iter> Primitive3DContainer(Iter first, Iter last) : deque(first, last) {} void append(const Primitive3DContainer& rSource); Primitive3DContainer& operator=(const Primitive3DContainer& r) { deque::operator=(r); return *this; } - Primitive3DContainer& operator=(Primitive3DContainer&& r) { deque::operator=(std::move(r)); return *this; } + Primitive3DContainer& operator=(Primitive3DContainer&& r) noexcept { deque::operator=(std::move(r)); return *this; } bool operator==(const Primitive3DContainer& rB) const; bool operator!=(const Primitive3DContainer& rB) const { return !operator==(rB); } basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& aViewInformation) const; diff --git a/include/editeng/brushitem.hxx b/include/editeng/brushitem.hxx index 8f298bd43408..944b481d7973 100644 --- a/include/editeng/brushitem.hxx +++ b/include/editeng/brushitem.hxx @@ -69,7 +69,7 @@ public: SvxBrushItem( const OUString& rLink, const OUString& rFilter, SvxGraphicPosition ePos, sal_uInt16 nWhich ); SvxBrushItem( const SvxBrushItem& ); - SvxBrushItem( SvxBrushItem&& ); + SvxBrushItem(SvxBrushItem&&) noexcept; virtual ~SvxBrushItem() override; diff --git a/include/o3tl/cow_wrapper.hxx b/include/o3tl/cow_wrapper.hxx index 79a4630f27ec..2fa7f03f276f 100644 --- a/include/o3tl/cow_wrapper.hxx +++ b/include/o3tl/cow_wrapper.hxx @@ -237,7 +237,7 @@ int cow_wrapper_client::queryUnmodified() const /** Move-construct and steal rSrc shared resource */ - explicit cow_wrapper( cow_wrapper&& rSrc ) : + explicit cow_wrapper( cow_wrapper&& rSrc ) noexcept : m_pimpl( rSrc.m_pimpl ) { rSrc.m_pimpl = nullptr; @@ -261,7 +261,7 @@ int cow_wrapper_client::queryUnmodified() const } /// stealing rSrc's resource - cow_wrapper& operator=( cow_wrapper&& rSrc ) + cow_wrapper& operator=(cow_wrapper&& rSrc) noexcept { // self-movement guts ourself, see also 17.6.4.9 release(); diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx index 9892855657d1..94ee142a2e77 100644 --- a/include/svl/itemset.hxx +++ b/include/svl/itemset.hxx @@ -112,7 +112,7 @@ public: struct Pair { sal_uInt16 wid1, wid2; }; SfxItemSet( const SfxItemSet& ); - SfxItemSet( SfxItemSet&& ); + SfxItemSet( SfxItemSet&& ) noexcept; SfxItemSet( SfxItemPool&); template<sal_uInt16... WIDs> SfxItemSet( diff --git a/include/svl/sharedstring.hxx b/include/svl/sharedstring.hxx index 5e757f79bcf3..71aad67ba2c6 100644 --- a/include/svl/sharedstring.hxx +++ b/include/svl/sharedstring.hxx @@ -27,11 +27,11 @@ public: SharedString( rtl_uString* pData, rtl_uString* pDataIgnoreCase ); explicit SharedString( const OUString& rStr ); SharedString( const SharedString& r ); - SharedString( SharedString&& r ); + SharedString(SharedString&& r) noexcept; ~SharedString(); SharedString& operator= ( const SharedString& r ); - SharedString& operator= ( SharedString&& r ); + SharedString& operator=(SharedString&& r) noexcept; bool operator== ( const SharedString& r ) const; bool operator!= ( const SharedString& r ) const; diff --git a/include/svl/svdde.hxx b/include/svl/svdde.hxx index f27e2135700f..07b5bcfd9f73 100644 --- a/include/svl/svdde.hxx +++ b/include/svl/svdde.hxx @@ -61,7 +61,7 @@ public: DdeData(SAL_UNUSED_PARAMETER const void*, SAL_UNUSED_PARAMETER long, SAL_UNUSED_PARAMETER SotClipboardFormatId = SotClipboardFormatId::STRING); DdeData(SAL_UNUSED_PARAMETER const OUString&); DdeData(const DdeData&); - DdeData(DdeData&&); + DdeData(DdeData&&) noexcept; ~DdeData(); void const * getData() const; @@ -70,7 +70,7 @@ public: SotClipboardFormatId GetFormat() const; DdeData& operator=(const DdeData&); - DdeData& operator=(DdeData&&); + DdeData& operator=(DdeData&&) noexcept; static sal_uLong GetExternalFormat(SotClipboardFormatId nFmt); static SotClipboardFormatId GetInternalFormat(sal_uLong nFmt); diff --git a/include/svx/dataaccessdescriptor.hxx b/include/svx/dataaccessdescriptor.hxx index 92e992c2ce74..c06e6474f3fe 100644 --- a/include/svx/dataaccessdescriptor.hxx +++ b/include/svx/dataaccessdescriptor.hxx @@ -68,7 +68,7 @@ namespace svx public: ODataAccessDescriptor(); ODataAccessDescriptor( const ODataAccessDescriptor& _rSource ); - ODataAccessDescriptor( ODataAccessDescriptor&& _rSource ); + ODataAccessDescriptor(ODataAccessDescriptor&& _rSource) noexcept; ODataAccessDescriptor( const css::uno::Reference< css::beans::XPropertySet >& _rValues ); ODataAccessDescriptor( const css::uno::Sequence< css::beans::PropertyValue >& _rValues ); @@ -76,7 +76,7 @@ namespace svx ODataAccessDescriptor( const css::uno::Any& _rValues ); ODataAccessDescriptor& operator=(const ODataAccessDescriptor& _rSource); - ODataAccessDescriptor& operator=(ODataAccessDescriptor&& _rSource); + ODataAccessDescriptor& operator=(ODataAccessDescriptor&& _rSource) noexcept; ~ODataAccessDescriptor(); diff --git a/include/svx/sdr/attribute/sdrformtextattribute.hxx b/include/svx/sdr/attribute/sdrformtextattribute.hxx index 6fe6b31164e3..1260509b4234 100644 --- a/include/svx/sdr/attribute/sdrformtextattribute.hxx +++ b/include/svx/sdr/attribute/sdrformtextattribute.hxx @@ -52,9 +52,9 @@ namespace drawinglayer SdrFormTextAttribute(const SfxItemSet& rSet); SdrFormTextAttribute(); SdrFormTextAttribute(const SdrFormTextAttribute& rCandidate); - SdrFormTextAttribute(SdrFormTextAttribute&& rCandidate); + SdrFormTextAttribute(SdrFormTextAttribute&& rCandidate) noexcept; SdrFormTextAttribute& operator=(const SdrFormTextAttribute& rCandidate); - SdrFormTextAttribute& operator=(SdrFormTextAttribute&& rCandidate); + SdrFormTextAttribute& operator=(SdrFormTextAttribute&& rCandidate) noexcept; ~SdrFormTextAttribute(); // checks if the incarnation is default constructed diff --git a/include/svx/sdr/attribute/sdrtextattribute.hxx b/include/svx/sdr/attribute/sdrtextattribute.hxx index 8aaaaf02989c..b81853ac637c 100644 --- a/include/svx/sdr/attribute/sdrtextattribute.hxx +++ b/include/svx/sdr/attribute/sdrtextattribute.hxx @@ -80,9 +80,9 @@ namespace drawinglayer SdrTextAttribute(); SdrTextAttribute(const SdrTextAttribute& rCandidate); - SdrTextAttribute(SdrTextAttribute&& rCandidate); + SdrTextAttribute(SdrTextAttribute&& rCandidate) noexcept; SdrTextAttribute& operator=(const SdrTextAttribute& rCandidate); - SdrTextAttribute& operator=(SdrTextAttribute&& rCandidate); + SdrTextAttribute& operator=(SdrTextAttribute&& rCandidate) noexcept; ~SdrTextAttribute(); // checks if the incarnation is default constructed diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx index 9f76af3238f4..44e0f50c99d0 100644 --- a/include/tools/ref.hxx +++ b/include/tools/ref.hxx @@ -35,7 +35,7 @@ template<typename T> class SAL_DLLPUBLIC_RTTI SvRef final { public: SvRef(): pObj(nullptr) {} - SvRef(SvRef&& rObj) + SvRef(SvRef&& rObj) noexcept { pObj = rObj.pObj; rObj.pObj = nullptr; diff --git a/include/ucbhelper/content.hxx b/include/ucbhelper/content.hxx index 6ec7148f1e51..da312323033f 100644 --- a/include/ucbhelper/content.hxx +++ b/include/ucbhelper/content.hxx @@ -144,7 +144,7 @@ public: /** * Move constructor. */ - Content( Content&& rOther ); + Content(Content&& rOther) noexcept; /** * Destructor. @@ -161,7 +161,7 @@ public: /** * Move assignment operator. */ - Content& operator=( Content&& rOther ); + Content& operator=(Content&& rOther) noexcept; /** * Constructor. This method should be used, if the exception thrown diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 59c6c9ac28d6..3d57e5dfe741 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -113,7 +113,7 @@ public: virtual ~Bitmap(); Bitmap& operator=( const Bitmap& rBitmap ); - Bitmap& operator=( Bitmap&& rBitmap ); + Bitmap& operator=( Bitmap&& rBitmap ) noexcept; inline bool operator!() const; bool operator==( const Bitmap& rBitmap ) const; bool operator!=( const Bitmap& rBitmap ) const { return !operator==(rBitmap); } diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx index 4adac78b48c4..f3f0c0aa1ab3 100644 --- a/include/vcl/graph.hxx +++ b/include/vcl/graph.hxx @@ -116,7 +116,7 @@ public: Graphic(); Graphic( const GraphicExternalLink& rGraphicLink ); Graphic( const Graphic& rGraphic ); - Graphic( Graphic&& rGraphic ); + Graphic( Graphic&& rGraphic ) noexcept; Graphic( const Bitmap& rBmp ); Graphic( const BitmapEx& rBmpEx ); Graphic( const VectorGraphicDataPtr& rVectorGraphicDataPtr ); @@ -125,7 +125,7 @@ public: Graphic( const css::uno::Reference< css::graphic::XGraphic >& rxGraphic ); Graphic& operator=( const Graphic& rGraphic ); - Graphic& operator=( Graphic&& rGraphic ); + Graphic& operator=( Graphic&& rGraphic ) noexcept; bool operator==( const Graphic& rGraphic ) const; bool operator!=( const Graphic& rGraphic ) const; diff --git a/include/vcl/transfer.hxx b/include/vcl/transfer.hxx index 722d3f26b42b..3373f3e032a9 100644 --- a/include/vcl/transfer.hxx +++ b/include/vcl/transfer.hxx @@ -284,7 +284,7 @@ public: TransferableDataHelper(); TransferableDataHelper( const TransferableDataHelper& rDataHelper ); - TransferableDataHelper( TransferableDataHelper&& rDataHelper ); + TransferableDataHelper( TransferableDataHelper&& rDataHelper ) noexcept; TransferableDataHelper( const css::uno::Reference< css::datatransfer::XTransferable >& rxTransferable ); ~TransferableDataHelper(); diff --git a/l10ntools/inc/po.hxx b/l10ntools/inc/po.hxx index aff8b88af100..bbbf289cbec6 100644 --- a/l10ntools/inc/po.hxx +++ b/l10ntools/inc/po.hxx @@ -51,7 +51,7 @@ public: PoEntry( const PoEntry& rPo ); PoEntry& operator=( const PoEntry& rPo ); - PoEntry& operator=( PoEntry&& rPo ); + PoEntry& operator=( PoEntry&& rPo ) noexcept; OString const & getSourceFile() const; ///< Get name of file from which entry is extracted OString getGroupId() const; diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index 921d752ce6c7..20c728e6338c 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -322,7 +322,7 @@ PoEntry& PoEntry::operator=(const PoEntry& rPo) return *this; } -PoEntry& PoEntry::operator=(PoEntry&& rPo) +PoEntry& PoEntry::operator=(PoEntry&& rPo) noexcept { m_pGenPo = std::move(rPo.m_pGenPo); m_bIsInitialized = std::move(rPo.m_bIsInitialized); diff --git a/o3tl/qa/cow_wrapper_clients.cxx b/o3tl/qa/cow_wrapper_clients.cxx index 1ede35a2805d..913165c83c56 100644 --- a/o3tl/qa/cow_wrapper_clients.cxx +++ b/o3tl/qa/cow_wrapper_clients.cxx @@ -56,7 +56,7 @@ cow_wrapper_client2::cow_wrapper_client2( const cow_wrapper_client2& rSrc ) : { } -cow_wrapper_client2::cow_wrapper_client2( cow_wrapper_client2&& rSrc ) : +cow_wrapper_client2::cow_wrapper_client2( cow_wrapper_client2&& rSrc ) noexcept : maImpl( std::move( rSrc.maImpl ) ) { } @@ -68,7 +68,7 @@ cow_wrapper_client2& cow_wrapper_client2::operator=( const cow_wrapper_client2& return *this; } -cow_wrapper_client2& cow_wrapper_client2::operator=( cow_wrapper_client2&& rSrc ) +cow_wrapper_client2& cow_wrapper_client2::operator=(cow_wrapper_client2&& rSrc) noexcept { maImpl = std::move(rSrc.maImpl); @@ -134,7 +134,7 @@ cow_wrapper_client3::cow_wrapper_client3( const cow_wrapper_client3& rSrc ) : { } -cow_wrapper_client3::cow_wrapper_client3( cow_wrapper_client3&& rSrc ) : +cow_wrapper_client3::cow_wrapper_client3( cow_wrapper_client3&& rSrc ) noexcept : maImpl( std::move( rSrc.maImpl ) ) { } @@ -146,7 +146,7 @@ cow_wrapper_client3& cow_wrapper_client3::operator=( const cow_wrapper_client3& return *this; } -cow_wrapper_client3& cow_wrapper_client3::operator=( cow_wrapper_client3&& rSrc ) +cow_wrapper_client3& cow_wrapper_client3::operator=(cow_wrapper_client3&& rSrc) noexcept { maImpl = std::move(rSrc.maImpl); @@ -260,7 +260,7 @@ cow_wrapper_client5::cow_wrapper_client5( const cow_wrapper_client5& rSrc ) : { } -cow_wrapper_client5::cow_wrapper_client5( cow_wrapper_client5&& rSrc ) : +cow_wrapper_client5::cow_wrapper_client5( cow_wrapper_client5&& rSrc ) noexcept : maImpl( std::move( rSrc.maImpl ) ) { } @@ -276,7 +276,7 @@ cow_wrapper_client5& cow_wrapper_client5::operator=( const cow_wrapper_client5& return *this; } -cow_wrapper_client5& cow_wrapper_client5::operator=( cow_wrapper_client5&& rSrc ) +cow_wrapper_client5& cow_wrapper_client5::operator=(cow_wrapper_client5&& rSrc) noexcept { maImpl = std::move( rSrc.maImpl ); diff --git a/o3tl/qa/cow_wrapper_clients.hxx b/o3tl/qa/cow_wrapper_clients.hxx index e68dc231e424..36d77553b178 100644 --- a/o3tl/qa/cow_wrapper_clients.hxx +++ b/o3tl/qa/cow_wrapper_clients.hxx @@ -70,9 +70,9 @@ public: ~cow_wrapper_client2(); cow_wrapper_client2( const cow_wrapper_client2& ); - cow_wrapper_client2( cow_wrapper_client2&& ); + cow_wrapper_client2(cow_wrapper_client2&&) noexcept; cow_wrapper_client2& operator=( const cow_wrapper_client2& ); - cow_wrapper_client2& operator=( cow_wrapper_client2&& ); + cow_wrapper_client2& operator=(cow_wrapper_client2&&) noexcept; void modify( int nVal ); int queryUnmodified() const; @@ -101,9 +101,9 @@ public: ~cow_wrapper_client3(); cow_wrapper_client3( const cow_wrapper_client3& ); - cow_wrapper_client3( cow_wrapper_client3&& ); + cow_wrapper_client3(cow_wrapper_client3&&) noexcept; cow_wrapper_client3& operator=( const cow_wrapper_client3& ); - cow_wrapper_client3& operator=( cow_wrapper_client3&& ); + cow_wrapper_client3& operator=(cow_wrapper_client3&&) noexcept; void modify( int nVal ); int queryUnmodified() const; @@ -182,9 +182,9 @@ public: ~cow_wrapper_client5(); cow_wrapper_client5( const cow_wrapper_client5& ); - cow_wrapper_client5( cow_wrapper_client5&& ); + cow_wrapper_client5(cow_wrapper_client5&&) noexcept; cow_wrapper_client5& operator=( const cow_wrapper_client5& ); - cow_wrapper_client5& operator=( cow_wrapper_client5&& ); + cow_wrapper_client5& operator=(cow_wrapper_client5&&) noexcept; int queryUnmodified() const { return *maImpl; } sal_uInt32 use_count() const { return maImpl.use_count(); } diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index a98578abcb23..67325fdb8d43 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -267,7 +267,7 @@ public: explicit ScCondFormatItem(); explicit ScCondFormatItem(sal_uInt32 nIndex); explicit ScCondFormatItem(const ScCondFormatIndexes& ); - explicit ScCondFormatItem(ScCondFormatIndexes&& ); + explicit ScCondFormatItem(ScCondFormatIndexes&&) noexcept; virtual ~ScCondFormatItem() override; diff --git a/sc/inc/cellvalue.hxx b/sc/inc/cellvalue.hxx index 281612d8874e..2331fd39a1d7 100644 --- a/sc/inc/cellvalue.hxx +++ b/sc/inc/cellvalue.hxx @@ -48,10 +48,10 @@ struct SC_DLLPUBLIC ScCellValue ScCellValue( double fValue ); ScCellValue( const svl::SharedString& rString ); ScCellValue( const ScCellValue& r ); - ScCellValue( ScCellValue&& r ); + ScCellValue(ScCellValue&& r) noexcept; ~ScCellValue(); - void clear(); + void clear() noexcept; void set( double fValue ); void set( const svl::SharedString& rStr ); @@ -89,7 +89,7 @@ struct SC_DLLPUBLIC ScCellValue bool equalsWithoutFormat( const ScCellValue& r ) const; ScCellValue& operator= ( const ScCellValue& r ); - ScCellValue& operator= ( ScCellValue&& r ); + ScCellValue& operator=(ScCellValue&& r) noexcept; ScCellValue& operator= ( const ScRefCellValue& r ); void swap( ScCellValue& r ); diff --git a/sc/inc/formulalogger.hxx b/sc/inc/formulalogger.hxx index ef4d34f83d7e..04bba1388e23 100644 --- a/sc/inc/formulalogger.hxx +++ b/sc/inc/formulalogger.hxx @@ -78,7 +78,7 @@ public: bool bOutputEnabled ); public: - GroupScope( GroupScope&& r ); + GroupScope(GroupScope&& r) noexcept; ~GroupScope(); /** diff --git a/sc/inc/markarr.hxx b/sc/inc/markarr.hxx index 588c26bcce49..edc1d7962d9a 100644 --- a/sc/inc/markarr.hxx +++ b/sc/inc/markarr.hxx @@ -49,7 +49,7 @@ friend class ScDocument; // for FillInfo public: ScMarkArray(); - ScMarkArray( ScMarkArray&& rArray ); + ScMarkArray( ScMarkArray&& rArray ) noexcept; ScMarkArray( const ScMarkArray& rArray ); ~ScMarkArray(); void Reset( bool bMarked = false, SCSIZE nNeeded = 1 ); @@ -62,7 +62,7 @@ public: bool HasMarks() const { return ( nCount > 1 || ( nCount == 1 && pData[0].bMarked ) ); } ScMarkArray& operator=( ScMarkArray const & rSource ); - ScMarkArray& operator=( ScMarkArray&& rSource ); + ScMarkArray& operator=(ScMarkArray&& rSource) noexcept; bool operator==(ScMarkArray const & rOther ) const; bool Search( SCROW nRow, SCSIZE& nIndex ) const; diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx index 382fb4d2b688..0727bda0fa7f 100644 --- a/sc/inc/mtvelements.hxx +++ b/sc/inc/mtvelements.hxx @@ -163,7 +163,7 @@ class TableColumnBlockPositionSet public: TableColumnBlockPositionSet( ScDocument& rDoc, SCTAB nTab ); - TableColumnBlockPositionSet( TableColumnBlockPositionSet&& rOther ); + TableColumnBlockPositionSet(TableColumnBlockPositionSet&& rOther) noexcept; ~TableColumnBlockPositionSet(); ColumnBlockPosition* getBlockPosition( SCCOL nCol ); diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx index 11c5d9b5f84b..f3ba932f471c 100644 --- a/sc/inc/postit.hxx +++ b/sc/inc/postit.hxx @@ -45,11 +45,11 @@ public: ScCaptionPtr(); explicit ScCaptionPtr( SdrCaptionObj* p ); ScCaptionPtr( const ScCaptionPtr& r ); - ScCaptionPtr( ScCaptionPtr&& r ); + ScCaptionPtr(ScCaptionPtr&& r) noexcept; ~ScCaptionPtr(); ScCaptionPtr& operator=( const ScCaptionPtr& r ); - ScCaptionPtr& operator=( ScCaptionPtr&& r ); + ScCaptionPtr& operator=(ScCaptionPtr&& r) noexcept; explicit operator bool() const { return mpCaption != nullptr; } const SdrCaptionObj* get() const { return mpCaption; } SdrCaptionObj* get() { return mpCaption; } @@ -131,7 +131,7 @@ private: Used by move-ctor and move assignment operator. */ - void replaceInList( ScCaptionPtr* pNew ); + void replaceInList(ScCaptionPtr* pNew) noexcept; /** Dissolve list when the caption object is released or gone. */ void dissolve(); diff --git a/sc/inc/rangelst.hxx b/sc/inc/rangelst.hxx index 079e1a646ab5..06e866ca769e 100644 --- a/sc/inc/rangelst.hxx +++ b/sc/inc/rangelst.hxx @@ -34,12 +34,12 @@ class SAL_WARN_UNUSED SC_DLLPUBLIC ScRangeList final : public SvRefBase public: ScRangeList(); ScRangeList( const ScRangeList& rList ); - ScRangeList( ScRangeList&& rList ); + ScRangeList(ScRangeList&& rList) noexcept; ScRangeList( const ScRange& rRange ); virtual ~ScRangeList() override; ScRangeList& operator=(const ScRangeList& rList); - ScRangeList& operator=(ScRangeList&& rList); + ScRangeList& operator=(ScRangeList&& rList) noexcept; ScRefFlags Parse( const OUString&, const ScDocument*, formula::FormulaGrammar::AddressConvention eConv = formula::FormulaGrammar::CONV_OOO, diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx index 1b523f918a41..f35d2c7219d7 100644 --- a/sc/source/core/data/attrib.cxx +++ b/sc/source/core/data/attrib.cxx @@ -677,7 +677,7 @@ ScCondFormatItem::ScCondFormatItem( const ScCondFormatIndexes& rIndex ): { } -ScCondFormatItem::ScCondFormatItem( ScCondFormatIndexes&& aIndex ): +ScCondFormatItem::ScCondFormatItem( ScCondFormatIndexes&& aIndex ) noexcept: SfxPoolItem( ATTR_CONDITIONAL ), maIndex( std::move(aIndex) ) { diff --git a/sc/source/core/data/cellvalue.cxx b/sc/source/core/data/cellvalue.cxx index ef662c4818f7..a860b359ee1d 100644 --- a/sc/source/core/data/cellvalue.cxx +++ b/sc/source/core/data/cellvalue.cxx @@ -244,7 +244,7 @@ ScCellValue::ScCellValue( const ScCellValue& r ) : meType(r.meType), mfValue(r.m } } -ScCellValue::ScCellValue(ScCellValue&& r) +ScCellValue::ScCellValue(ScCellValue&& r) noexcept : meType(r.meType) , mfValue(r.mfValue) { @@ -270,7 +270,7 @@ ScCellValue::~ScCellValue() clear(); } -void ScCellValue::clear() +void ScCellValue::clear() noexcept { switch (meType) { @@ -513,7 +513,7 @@ ScCellValue& ScCellValue::operator= ( const ScCellValue& r ) return *this; } -ScCellValue& ScCellValue::operator=(ScCellValue&& rCell) +ScCellValue& ScCellValue::operator=(ScCellValue&& rCell) noexcept { clear(); diff --git a/sc/source/core/data/markarr.cxx b/sc/source/core/data/markarr.cxx index eeeda2aeab8b..3db2c9544b2d 100644 --- a/sc/source/core/data/markarr.cxx +++ b/sc/source/core/data/markarr.cxx @@ -32,7 +32,7 @@ ScMarkArray::ScMarkArray() : } // Move constructor -ScMarkArray::ScMarkArray( ScMarkArray&& rOther ) +ScMarkArray::ScMarkArray( ScMarkArray&& rOther ) noexcept { operator=(std::move(rOther)); } @@ -338,7 +338,7 @@ ScMarkArray& ScMarkArray::operator=( const ScMarkArray& rOther ) return *this; } -ScMarkArray& ScMarkArray::operator=( ScMarkArray&& rOther ) +ScMarkArray& ScMarkArray::operator=(ScMarkArray&& rOther) noexcept { nCount = rOther.nCount; nLimit = rOther.nLimit; diff --git a/sc/source/core/data/mtvelements.cxx b/sc/source/core/data/mtvelements.cxx index e15416fb7d99..21eef33cad45 100644 --- a/sc/source/core/data/mtvelements.cxx +++ b/sc/source/core/data/mtvelements.cxx @@ -120,7 +120,7 @@ TableColumnBlockPositionSet::TableColumnBlockPositionSet( ScDocument& rDoc, SCTA } } -TableColumnBlockPositionSet::TableColumnBlockPositionSet( TableColumnBlockPositionSet&& rOther ) : +TableColumnBlockPositionSet::TableColumnBlockPositionSet( TableColumnBlockPositionSet&& rOther ) noexcept : mpImpl(std::move(rOther.mpImpl)) {} TableColumnBlockPositionSet::~TableColumnBlockPositionSet() {} diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx index 5b92edc04e4b..990440b7dbfa 100644 --- a/sc/source/core/data/postit.cxx +++ b/sc/source/core/data/postit.cxx @@ -482,15 +482,15 @@ ScCaptionPtr::ScCaptionPtr( const ScCaptionPtr& r ) : } } -ScCaptionPtr::ScCaptionPtr( ScCaptionPtr&& r ) : - mpHead(r.mpHead), mpNext(r.mpNext), mpCaption(r.mpCaption), mbNotOwner(false) +ScCaptionPtr::ScCaptionPtr(ScCaptionPtr&& r) noexcept + : mpHead(r.mpHead), mpNext(r.mpNext), mpCaption(r.mpCaption), mbNotOwner(false) { r.replaceInList( this ); r.mpCaption = nullptr; r.mbNotOwner = false; } -ScCaptionPtr& ScCaptionPtr::operator=( ScCaptionPtr&& r ) +ScCaptionPtr& ScCaptionPtr::operator=(ScCaptionPtr&& r) noexcept { assert(this != &r); @@ -560,7 +560,7 @@ void ScCaptionPtr::newHead() mpHead = new Head(this); } -void ScCaptionPtr::replaceInList( ScCaptionPtr* pNew ) +void ScCaptionPtr::replaceInList(ScCaptionPtr* pNew) noexcept { if (!mpHead && !mpNext) return; diff --git a/sc/source/core/tool/formulalogger.cxx b/sc/source/core/tool/formulalogger.cxx index d877c1e63c5f..06d42f48f407 100644 --- a/sc/source/core/tool/formulalogger.cxx +++ b/sc/source/core/tool/formulalogger.cxx @@ -126,7 +126,7 @@ FormulaLogger::GroupScope::GroupScope( const ScFormulaCell& rCell, bool bOutputEnabled ) : mpImpl(std::make_unique<Impl>(rLogger, rPrefix, rDoc, rCell, bOutputEnabled)) {} -FormulaLogger::GroupScope::GroupScope( GroupScope&& r ) : mpImpl(std::move(r.mpImpl)) {} +FormulaLogger::GroupScope::GroupScope(GroupScope&& r) noexcept : mpImpl(std::move(r.mpImpl)) {} FormulaLogger::GroupScope::~GroupScope() {} diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx index ce5e75bd403c..4e6891658082 100644 --- a/sc/source/core/tool/rangelst.cxx +++ b/sc/source/core/tool/rangelst.cxx @@ -983,7 +983,7 @@ ScRangeList::ScRangeList( const ScRangeList& rList ) : { } -ScRangeList::ScRangeList( ScRangeList&& rList ) : +ScRangeList::ScRangeList(ScRangeList&& rList) noexcept : SvRefBase(), maRanges(std::move(rList.maRanges)), mnMaxRowUsed(rList.mnMaxRowUsed) @@ -1004,7 +1004,7 @@ ScRangeList& ScRangeList::operator=(const ScRangeList& rList) return *this; } -ScRangeList& ScRangeList::operator=(ScRangeList&& rList) +ScRangeList& ScRangeList::operator=(ScRangeList&& rList) noexcept { maRanges = std::move(rList.maRanges); mnMaxRowUsed = rList.mnMaxRowUsed; diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index 2c03fe0a074e..3ced23b3cc50 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -1198,10 +1198,10 @@ public: WalkElementBlocksMultipleValues( const WalkElementBlocksMultipleValues& ) = delete; WalkElementBlocksMultipleValues& operator= ( const WalkElementBlocksMultipleValues& ) = delete; - WalkElementBlocksMultipleValues( WalkElementBlocksMultipleValues&& r ) : + WalkElementBlocksMultipleValues(WalkElementBlocksMultipleValues&& r) noexcept : mpOp(r.mpOp), maRes(std::move(r.maRes)), mbFirst(r.mbFirst) {} - WalkElementBlocksMultipleValues& operator= ( WalkElementBlocksMultipleValues&& r ) + WalkElementBlocksMultipleValues& operator=(WalkElementBlocksMultipleValues&& r) noexcept { mpOp = r.mpOp; maRes = std::move(r.maRes); @@ -1689,13 +1689,13 @@ public: CompareMatrixFunc( const CompareMatrixFunc& ) = delete; CompareMatrixFunc& operator= ( const CompareMatrixFunc& ) = delete; - CompareMatrixFunc( CompareMatrixFunc&& r ) : + CompareMatrixFunc(CompareMatrixFunc&& r) noexcept : mrComp(r.mrComp), mnMatPos(r.mnMatPos), mpOptions(r.mpOptions), maResValues(std::move(r.maResValues)) {} - CompareMatrixFunc& operator= ( CompareMatrixFunc&& r ) + CompareMatrixFunc& operator=(CompareMatrixFunc&& r) noexcept { mrComp = r.mrComp; mnMatPos = r.mnMatPos; @@ -1815,13 +1815,13 @@ public: CompareMatrixToNumericFunc( const CompareMatrixToNumericFunc& ) = delete; CompareMatrixToNumericFunc& operator= ( const CompareMatrixToNumericFunc& ) = delete; - CompareMatrixToNumericFunc( CompareMatrixToNumericFunc&& r ) : + CompareMatrixToNumericFunc(CompareMatrixToNumericFunc&& r) noexcept : mrComp(r.mrComp), mfRightValue(r.mfRightValue), mpOptions(r.mpOptions), maResValues(std::move(r.maResValues)) {} - CompareMatrixToNumericFunc& operator= ( CompareMatrixToNumericFunc&& r ) + CompareMatrixToNumericFunc& operator=(CompareMatrixToNumericFunc&& r) noexcept { mrComp = r.mrComp; mfRightValue = r.mfRightValue; @@ -1913,13 +1913,13 @@ public: ToDoubleArray( const ToDoubleArray& ) = delete; ToDoubleArray& operator= ( const ToDoubleArray& ) = delete; - ToDoubleArray( ToDoubleArray&& r ) : + ToDoubleArray(ToDoubleArray&& r) noexcept : mfNaN(r.mfNaN), mbEmptyAsZero(r.mbEmptyAsZero) { moveArray(r); } - ToDoubleArray& operator= ( ToDoubleArray&& r ) + ToDoubleArray& operator=(ToDoubleArray&& r) noexcept { mfNaN = r.mfNaN; mbEmptyAsZero = r.mbEmptyAsZero; diff --git a/sd/inc/OutlinerIterator.hxx b/sd/inc/OutlinerIterator.hxx index d9033bbfb8cc..dcc8238d4271 100644 --- a/sd/inc/OutlinerIterator.hxx +++ b/sd/inc/OutlinerIterator.hxx @@ -81,7 +81,7 @@ public: implementation object. */ Iterator (const Iterator& rIterator); - Iterator (Iterator&& rIterator); + Iterator(Iterator&& rIterator) noexcept; /** Create a new iterator with the implementation object being the provided one. @@ -98,7 +98,7 @@ public: The iterator which to assign from. */ Iterator& operator= (const Iterator& rIterator); - Iterator& operator= (Iterator&& rIterator); + Iterator& operator=(Iterator&& rIterator) noexcept; /** Return the current position of the iterator. @return diff --git a/sd/source/ui/view/OutlinerIterator.cxx b/sd/source/ui/view/OutlinerIterator.cxx index 63e4288b7009..8546b9f63264 100644 --- a/sd/source/ui/view/OutlinerIterator.cxx +++ b/sd/source/ui/view/OutlinerIterator.cxx @@ -65,7 +65,7 @@ Iterator::Iterator (const Iterator& rIterator) { } -Iterator::Iterator (Iterator&& rIterator) +Iterator::Iterator(Iterator&& rIterator) noexcept : mxIterator(std::move(rIterator.mxIterator)) { } @@ -91,7 +91,7 @@ Iterator& Iterator::operator= (const Iterator& rIterator) return *this; } -Iterator& Iterator::operator= (Iterator&& rIterator) +Iterator& Iterator::operator=(Iterator&& rIterator) noexcept { mxIterator = std::move(rIterator.mxIterator); return *this; diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 1faf57230a58..35da205612ac 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -216,7 +216,7 @@ SfxItemSet::SfxItemSet( const SfxItemSet& rASet ) memcpy( m_pWhichRanges, rASet.m_pWhichRanges, sizeof( sal_uInt16 ) * cnt); } -SfxItemSet::SfxItemSet( SfxItemSet&& rASet ) +SfxItemSet::SfxItemSet(SfxItemSet&& rASet) noexcept : m_pPool( rASet.m_pPool ) , m_pParent( rASet.m_pParent ) , m_pItems( std::move(rASet.m_pItems) ) diff --git a/svl/source/misc/sharedstring.cxx b/svl/source/misc/sharedstring.cxx index 97c22aa72942..9aff3eb0eab5 100644 --- a/svl/source/misc/sharedstring.cxx +++ b/svl/source/misc/sharedstring.cxx @@ -44,7 +44,7 @@ SharedString::SharedString( const SharedString& r ) : mpData(r.mpData), mpDataIg rtl_uString_acquire(mpDataIgnoreCase); } -SharedString::SharedString( SharedString&& r ) : mpData(r.mpData), mpDataIgnoreCase(r.mpDataIgnoreCase) +SharedString::SharedString(SharedString&& r) noexcept : mpData(r.mpData), mpDataIgnoreCase(r.mpDataIgnoreCase) { r.mpData = nullptr; r.mpDataIgnoreCase = nullptr; @@ -79,7 +79,7 @@ SharedString& SharedString::operator= ( const SharedString& r ) return *this; } -SharedString& SharedString::operator= ( SharedString&& r ) +SharedString& SharedString::operator=(SharedString&& r) noexcept { if (mpData) rtl_uString_release(mpData); diff --git a/svl/source/svdde/ddedata.cxx b/svl/source/svdde/ddedata.cxx index cb12b415a8eb..c57de4a9ac0b 100644 --- a/svl/source/svdde/ddedata.cxx +++ b/svl/source/svdde/ddedata.cxx @@ -67,7 +67,7 @@ DdeData::DdeData(const DdeData& rData) Lock(); } -DdeData::DdeData(DdeData&& rData) +DdeData::DdeData(DdeData&& rData) noexcept : xImp(std::move(rData.xImp)) { } @@ -115,7 +115,7 @@ DdeData& DdeData::operator=(const DdeData& rData) return *this; } -DdeData& DdeData::operator=(DdeData&& rData) +DdeData& DdeData::operator=(DdeData&& rData) noexcept { xImp = std::move(rData.xImp); return *this; diff --git a/svl/unx/source/svdde/ddedummy.cxx b/svl/unx/source/svdde/ddedummy.cxx index 31cb24aa6c37..2e633f895722 100644 --- a/svl/unx/source/svdde/ddedummy.cxx +++ b/svl/unx/source/svdde/ddedummy.cxx @@ -40,7 +40,7 @@ DdeData::DdeData(const DdeData&) { } -DdeData::DdeData(DdeData&&) +DdeData::DdeData(DdeData&&) noexcept { } @@ -66,7 +66,7 @@ DdeData& DdeData::operator=(const DdeData&) return *this; } -DdeData& DdeData::operator=(DdeData&&) +DdeData& DdeData::operator=(DdeData&&) noexcept { return *this; } diff --git a/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx b/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx index 924967a1be31..dee94cd72aca 100644 --- a/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx +++ b/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx @@ -53,7 +53,7 @@ namespace drawinglayer SdrFormTextOutlineAttribute(); SdrFormTextOutlineAttribute(const SdrFormTextOutlineAttribute& rCandidate); SdrFormTextOutlineAttribute& operator=(const SdrFormTextOutlineAttribute& rCandidate); - SdrFormTextOutlineAttribute& operator=(SdrFormTextOutlineAttribute&& rCandidate); + SdrFormTextOutlineAttribute& operator=(SdrFormTextOutlineAttribute&& rCandidate) noexcept; ~SdrFormTextOutlineAttribute(); // checks if the incarnation is default constructed diff --git a/svx/source/form/dataaccessdescriptor.cxx b/svx/source/form/dataaccessdescriptor.cxx index acad7b4a78f6..cbfea8c0e593 100644 --- a/svx/source/form/dataaccessdescriptor.cxx +++ b/svx/source/form/dataaccessdescriptor.cxx @@ -241,7 +241,7 @@ namespace svx { } - ODataAccessDescriptor::ODataAccessDescriptor( ODataAccessDescriptor&& _rSource ) + ODataAccessDescriptor::ODataAccessDescriptor(ODataAccessDescriptor&& _rSource) noexcept :m_pImpl(std::move(_rSource.m_pImpl)) { } @@ -253,7 +253,7 @@ namespace svx return *this; } - ODataAccessDescriptor& ODataAccessDescriptor::operator=(ODataAccessDescriptor&& _rSource) + ODataAccessDescriptor& ODataAccessDescriptor::operator=(ODataAccessDescriptor&& _rSource) noexcept { m_pImpl = std::move(_rSource.m_pImpl); return *this; diff --git a/svx/source/sdr/attribute/sdrformtextattribute.cxx b/svx/source/sdr/attribute/sdrformtextattribute.cxx index a82656723207..74bf9926622c 100644 --- a/svx/source/sdr/attribute/sdrformtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrformtextattribute.cxx @@ -277,7 +277,7 @@ namespace drawinglayer { } - SdrFormTextAttribute::SdrFormTextAttribute(SdrFormTextAttribute&& rCandidate) + SdrFormTextAttribute::SdrFormTextAttribute(SdrFormTextAttribute&& rCandidate) noexcept : mpSdrFormTextAttribute(std::move(rCandidate.mpSdrFormTextAttribute)) { } @@ -297,7 +297,7 @@ namespace drawinglayer return *this; } - SdrFormTextAttribute& SdrFormTextAttribute::operator=(SdrFormTextAttribute&& rCandidate) + SdrFormTextAttribute& SdrFormTextAttribute::operator=(SdrFormTextAttribute&& rCandidate) noexcept { mpSdrFormTextAttribute = std::move(rCandidate.mpSdrFormTextAttribute); return *this; diff --git a/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx b/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx index 062a786dec10..72529a3c0652 100644 --- a/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx +++ b/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx @@ -108,7 +108,7 @@ namespace drawinglayer return *this; } - SdrFormTextOutlineAttribute& SdrFormTextOutlineAttribute::operator=(SdrFormTextOutlineAttribute&& rCandidate) + SdrFormTextOutlineAttribute& SdrFormTextOutlineAttribute::operator=(SdrFormTextOutlineAttribute&& rCandidate) noexcept { mpSdrFormTextOutlineAttribute = std::move(rCandidate.mpSdrFormTextOutlineAttribute); return *this; diff --git a/svx/source/sdr/attribute/sdrtextattribute.cxx b/svx/source/sdr/attribute/sdrtextattribute.cxx index 4222de542697..81889f5cc52a 100644 --- a/svx/source/sdr/attribute/sdrtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrtextattribute.cxx @@ -279,7 +279,7 @@ namespace drawinglayer { } - SdrTextAttribute::SdrTextAttribute(SdrTextAttribute&& rCandidate) + SdrTextAttribute::SdrTextAttribute(SdrTextAttribute&& rCandidate) noexcept : mpSdrTextAttribute(std::move(rCandidate.mpSdrTextAttribute)) { } @@ -299,7 +299,7 @@ namespace drawinglayer return *this; } - SdrTextAttribute& SdrTextAttribute::operator=(SdrTextAttribute&& rCandidate) + SdrTextAttribute& SdrTextAttribute::operator=(SdrTextAttribute&& rCandidate) noexcept { mpSdrTextAttribute = std::move(rCandidate.mpSdrTextAttribute); return *this; diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 04eccd0f0057..9641a4e0a87a 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -320,7 +320,7 @@ Content::Content( const Content& rOther ) m_xImpl = rOther.m_xImpl; } -Content::Content( Content&& rOther ) +Content::Content( Content&& rOther ) noexcept { m_xImpl = std::move(rOther.m_xImpl); } @@ -361,7 +361,7 @@ Content& Content::operator=( const Content& rOther ) return *this; } -Content& Content::operator=( Content&& rOther ) +Content& Content::operator=( Content&& rOther ) noexcept { m_xImpl = std::move(rOther.m_xImpl); return *this; diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx index 76e00febcbde..8837dc63903c 100644 --- a/vcl/inc/impgraph.hxx +++ b/vcl/inc/impgraph.hxx @@ -106,7 +106,7 @@ private: public: ImpGraphic(); ImpGraphic( const ImpGraphic& rImpGraphic ); - ImpGraphic( ImpGraphic&& rImpGraphic ); + ImpGraphic( ImpGraphic&& rImpGraphic ) noexcept; ImpGraphic( const GraphicExternalLink& rExternalLink); ImpGraphic( const Bitmap& rBmp ); ImpGraphic( const BitmapEx& rBmpEx ); diff --git a/vcl/inc/opengl/texture.hxx b/vcl/inc/opengl/texture.hxx index 98bd79977ff4..384e2a879097 100644 --- a/vcl/inc/opengl/texture.hxx +++ b/vcl/inc/opengl/texture.hxx @@ -91,7 +91,7 @@ public: OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, void const * pData ); OpenGLTexture( int nX, int nY, int nWidth, int nHeight ); OpenGLTexture( const OpenGLTexture& rTexture ); - OpenGLTexture( OpenGLTexture&& rTexture ); + OpenGLTexture( OpenGLTexture&& rTexture ) noexcept; OpenGLTexture( const OpenGLTexture& rTexture, int nX, int nY, int nWidth, int nHeight ); ~OpenGLTexture(); diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx index 157bf51fa562..3b575e9bfcfe 100644 --- a/vcl/opengl/texture.cxx +++ b/vcl/opengl/texture.cxx @@ -307,7 +307,7 @@ OpenGLTexture::OpenGLTexture(const OpenGLTexture& rTexture) mpImpl->IncreaseRefCount(mnSlotNumber); } -OpenGLTexture::OpenGLTexture(OpenGLTexture&& rTexture) +OpenGLTexture::OpenGLTexture(OpenGLTexture&& rTexture) noexcept : maRect(rTexture.maRect) , mpImpl(std::move(rTexture.mpImpl)) , mnSlotNumber(rTexture.mnSlotNumber) diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx index cfaad6c7faf6..a24fddf31023 100644 --- a/vcl/source/bitmap/bitmap.cxx +++ b/vcl/source/bitmap/bitmap.cxx @@ -220,7 +220,7 @@ Bitmap& Bitmap::operator=( const Bitmap& rBitmap ) return *this; } -Bitmap& Bitmap::operator=( Bitmap&& rBitmap ) +Bitmap& Bitmap::operator=( Bitmap&& rBitmap ) noexcept { maPrefSize = std::move(rBitmap.maPrefSize); maPrefMapMode = std::move(rBitmap.maPrefMapMode); diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx index 89c02b677fd7..06d9c80d321a 100644 --- a/vcl/source/gdi/graph.cxx +++ b/vcl/source/gdi/graph.cxx @@ -191,7 +191,7 @@ Graphic::Graphic(const Graphic& rGraphic) mxImpGraphic = rGraphic.mxImpGraphic; } -Graphic::Graphic(Graphic&& rGraphic) +Graphic::Graphic(Graphic&& rGraphic) noexcept : mxImpGraphic(std::move(rGraphic.mxImpGraphic)) { } @@ -275,7 +275,7 @@ Graphic& Graphic::operator=( const Graphic& rGraphic ) return *this; } -Graphic& Graphic::operator=(Graphic&& rGraphic) +Graphic& Graphic::operator=(Graphic&& rGraphic) noexcept { mxImpGraphic = std::move(rGraphic.mxImpGraphic); return *this; diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index 252a4fc9c979..69e578d0e235 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -211,7 +211,7 @@ ImpGraphic::ImpGraphic(const ImpGraphic& rImpGraphic) } } -ImpGraphic::ImpGraphic(ImpGraphic&& rImpGraphic) +ImpGraphic::ImpGraphic(ImpGraphic&& rImpGraphic) noexcept : maMetaFile(std::move(rImpGraphic.maMetaFile)) , maEx(std::move(rImpGraphic.maEx)) , maSwapInfo(std::move(rImpGraphic.maSwapInfo)) diff --git a/vcl/source/treelist/transfer.cxx b/vcl/source/treelist/transfer.cxx index e187dd9e8876..9bb5456d7be2 100644 --- a/vcl/source/treelist/transfer.cxx +++ b/vcl/source/treelist/transfer.cxx @@ -1141,7 +1141,7 @@ TransferableDataHelper::TransferableDataHelper(const TransferableDataHelper& rDa { } -TransferableDataHelper::TransferableDataHelper(TransferableDataHelper&& rDataHelper) +TransferableDataHelper::TransferableDataHelper(TransferableDataHelper&& rDataHelper) noexcept : mxTransfer(std::move(rDataHelper.mxTransfer)) , mxClipboard(std::move(rDataHelper.mxClipboard)) , maFormats(std::move(rDataHelper.maFormats)) |