Mark move ctors/assignments noexcept

This should enable using move semantics where possible e.g. in standard
containers.
According to https://en.cppreference.com/w/cpp/language/move_constructor:

  To make strong exception guarantee possible, user-defined move
  constructors should not throw exceptions. For example, std::vector
  relies on std::move_if_noexcept to choose between move and copy
  when the elements need to be relocated.

Change-Id: I6e1e1cdd5cd430b139ffa2fa7031fb0bb625decb
Reviewed-on: https://gerrit.libreoffice.org/77957
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2019-08-22 15:42:36 +03:00
parent 61ed17cafc
commit 63dfd069b3
70 changed files with 131 additions and 132 deletions

View File

@ -45,7 +45,7 @@ ViewElementListProvider::ViewElementListProvider( DrawModelWrapper* pDrawModelWr
{ {
} }
ViewElementListProvider::ViewElementListProvider( ViewElementListProvider&& rOther ) ViewElementListProvider::ViewElementListProvider(ViewElementListProvider&& rOther) noexcept
{ {
m_pDrawModelWrapper = rOther.m_pDrawModelWrapper; m_pDrawModelWrapper = rOther.m_pDrawModelWrapper;
m_pFontList = std::move(rOther.m_pFontList); m_pFontList = std::move(rOther.m_pFontList);

View File

@ -35,7 +35,7 @@ class ViewElementListProvider final
{ {
public: public:
ViewElementListProvider( DrawModelWrapper* pDrawModelWrapper ); ViewElementListProvider( DrawModelWrapper* pDrawModelWrapper );
ViewElementListProvider( ViewElementListProvider&& ); ViewElementListProvider(ViewElementListProvider&&) noexcept;
~ViewElementListProvider(); ~ViewElementListProvider();
XColorListRef GetColorTable() const; XColorListRef GetColorTable() const;

View File

@ -106,10 +106,10 @@ VDataSeriesGroup::VDataSeriesGroup( std::unique_ptr<VDataSeries> pSeries )
m_aSeriesVector[0] = std::move(pSeries); m_aSeriesVector[0] = std::move(pSeries);
} }
VDataSeriesGroup::VDataSeriesGroup( VDataSeriesGroup&& other ) VDataSeriesGroup::VDataSeriesGroup(VDataSeriesGroup&& other) noexcept
: m_aSeriesVector( std::move(other.m_aSeriesVector) ) : m_aSeriesVector( std::move(other.m_aSeriesVector) )
, m_bMaxPointCountDirty( other.m_bMaxPointCountDirty ) , m_bMaxPointCountDirty( other.m_bMaxPointCountDirty )
, m_nMaxPointCount( std::move(other.m_nMaxPointCount) ) , m_nMaxPointCount( other.m_nMaxPointCount )
, m_aListOfCachedYValues( std::move(other.m_aListOfCachedYValues) ) , m_aListOfCachedYValues( std::move(other.m_aListOfCachedYValues) )
{ {
} }

View File

@ -85,7 +85,7 @@ class VDataSeriesGroup final
public: public:
VDataSeriesGroup() = delete; VDataSeriesGroup() = delete;
VDataSeriesGroup( std::unique_ptr<VDataSeries> pSeries ); VDataSeriesGroup( std::unique_ptr<VDataSeries> pSeries );
VDataSeriesGroup( VDataSeriesGroup&& ); VDataSeriesGroup(VDataSeriesGroup&&) noexcept;
~VDataSeriesGroup(); ~VDataSeriesGroup();
void addSeries( std::unique_ptr<VDataSeries> pSeries );//takes ownership of pSeries void addSeries( std::unique_ptr<VDataSeries> pSeries );//takes ownership of pSeries

View File

@ -64,7 +64,7 @@ namespace comphelper
*this = _rCopySource; *this = _rCopySource;
} }
NamedValueCollection::NamedValueCollection( NamedValueCollection&& _rCopySource ) NamedValueCollection::NamedValueCollection(NamedValueCollection&& _rCopySource) noexcept
:m_pImpl( std::move(_rCopySource.m_pImpl) ) :m_pImpl( std::move(_rCopySource.m_pImpl) )
{ {
} }
@ -75,7 +75,7 @@ namespace comphelper
return *this; return *this;
} }
NamedValueCollection& NamedValueCollection::operator=( NamedValueCollection&& i_rCopySource ) NamedValueCollection& NamedValueCollection::operator=(NamedValueCollection&& i_rCopySource) noexcept
{ {
m_pImpl = std::move(i_rCopySource.m_pImpl); m_pImpl = std::move(i_rCopySource.m_pImpl);
return *this; return *this;

View File

@ -259,7 +259,7 @@ void ORowSetValue::setTypeKind(sal_Int32 _eType)
} }
void ORowSetValue::free() void ORowSetValue::free() noexcept
{ {
if(!m_bNull) if(!m_bNull)
{ {
@ -470,7 +470,7 @@ ORowSetValue& ORowSetValue::operator=(const ORowSetValue& _rRH)
return *this; return *this;
} }
ORowSetValue& ORowSetValue::operator=(ORowSetValue&& _rRH) ORowSetValue& ORowSetValue::operator=(ORowSetValue&& _rRH) noexcept
{ {
if ( m_eTypeKind != _rRH.m_eTypeKind || !m_bNull) if ( m_eTypeKind != _rRH.m_eTypeKind || !m_bNull)
free(); free();

View File

@ -188,7 +188,7 @@ namespace dbtools
{ {
} }
DatabaseMetaData::DatabaseMetaData( DatabaseMetaData&& _copyFrom ) DatabaseMetaData::DatabaseMetaData(DatabaseMetaData&& _copyFrom) noexcept
:m_pImpl(std::move(_copyFrom.m_pImpl)) :m_pImpl(std::move(_copyFrom.m_pImpl))
{ {
} }
@ -202,7 +202,7 @@ namespace dbtools
return *this; return *this;
} }
DatabaseMetaData& DatabaseMetaData::operator=( DatabaseMetaData&& _copyFrom ) DatabaseMetaData& DatabaseMetaData::operator=(DatabaseMetaData&& _copyFrom) noexcept
{ {
m_pImpl = std::move(_copyFrom.m_pImpl); m_pImpl = std::move(_copyFrom.m_pImpl);
return *this; return *this;

View File

@ -809,7 +809,7 @@ ONDXPagePtr::ONDXPagePtr()
{ {
} }
ONDXPagePtr::ONDXPagePtr(ONDXPagePtr&& rRef) ONDXPagePtr::ONDXPagePtr(ONDXPagePtr&& rRef) noexcept
{ {
mpPage = rRef.mpPage; mpPage = rRef.mpPage;
rRef.mpPage = nullptr; rRef.mpPage = nullptr;

View File

@ -92,7 +92,7 @@ namespace connectivity
public: public:
ONDXPagePtr(); ONDXPagePtr();
ONDXPagePtr(ONDXPagePtr&& rObj); ONDXPagePtr(ONDXPagePtr&& rObj) noexcept;
ONDXPagePtr(ONDXPagePtr const & rRef); ONDXPagePtr(ONDXPagePtr const & rRef);
ONDXPagePtr(ONDXPage* pRefPage); ONDXPagePtr(ONDXPage* pRefPage);
~ONDXPagePtr(); ~ONDXPagePtr();

View File

@ -2819,7 +2819,7 @@ SvxBrushItem::SvxBrushItem(const SvxBrushItem& rItem)
{ {
} }
SvxBrushItem::SvxBrushItem(SvxBrushItem&& rItem) SvxBrushItem::SvxBrushItem(SvxBrushItem&& rItem) noexcept
: SfxPoolItem(std::move(rItem)) : SfxPoolItem(std::move(rItem))
, aColor(std::move(rItem.aColor)) , aColor(std::move(rItem.aColor))
, nShadingValue(std::move(rItem.nShadingValue)) , nShadingValue(std::move(rItem.nShadingValue))

View File

@ -320,7 +320,7 @@ namespace abp
return *this; return *this;
} }
ODataSource& ODataSource::operator=( ODataSource&& _rSource ) ODataSource& ODataSource::operator=(ODataSource&& _rSource) noexcept
{ {
m_pImpl = std::move(_rSource.m_pImpl); m_pImpl = std::move(_rSource.m_pImpl);
return *this; return *this;

View File

@ -117,7 +117,7 @@ namespace abp
ODataSource& operator=( const ODataSource& _rSource ); ODataSource& operator=( const ODataSource& _rSource );
/// move assignment /// move assignment
ODataSource& operator=( ODataSource&& _rSource ); ODataSource& operator=(ODataSource&& _rSource) noexcept;
/// checks whether or not the object represents a valid data source /// checks whether or not the object represents a valid data source
bool isValid() const; bool isValid() const;

View File

@ -112,7 +112,7 @@ struct PartialState
, mnRegionClipPathId( 0 ) , mnRegionClipPathId( 0 )
{} {}
PartialState(PartialState&& aPartialState) PartialState(PartialState&& aPartialState) noexcept
: meFlags( aPartialState.meFlags ) : meFlags( aPartialState.meFlags )
, mupFont( std::move( aPartialState.mupFont ) ) , mupFont( std::move( aPartialState.mupFont ) )
, mnRegionClipPathId( aPartialState.mnRegionClipPathId ) , mnRegionClipPathId( aPartialState.mnRegionClipPathId )

View File

@ -78,10 +78,9 @@ namespace canvas
mpWrappee = nullptr; mpWrappee = nullptr;
} }
VCLObject( VCLObject&& rOrig ) VCLObject(VCLObject&& rOrig) noexcept
: mpWrappee(rOrig.mpWrappee) : mpWrappee(std::move(rOrig.mpWrappee))
{ {
rOrig.mpWrappee = nullptr;
} }
// This object has value semantics, thus, forward copy // This object has value semantics, thus, forward copy
@ -111,7 +110,7 @@ namespace canvas
return *this; return *this;
} }
VCLObject& operator=( VCLObject&& rhs ) VCLObject& operator=(VCLObject&& rhs) noexcept
{ {
std::swap(mpWrappee, rhs.mpWrappee); std::swap(mpWrappee, rhs.mpWrappee);

View File

@ -48,10 +48,10 @@ namespace comphelper
NamedValueCollection(); NamedValueCollection();
NamedValueCollection( const NamedValueCollection& _rCopySource ); NamedValueCollection( const NamedValueCollection& _rCopySource );
NamedValueCollection( NamedValueCollection&& _rCopySource ); NamedValueCollection(NamedValueCollection&& _rCopySource) noexcept;
NamedValueCollection& operator=( const NamedValueCollection& i_rCopySource ); NamedValueCollection& operator=( const NamedValueCollection& i_rCopySource );
NamedValueCollection& operator=( NamedValueCollection&& i_rCopySource ); NamedValueCollection& operator=(NamedValueCollection&& i_rCopySource) noexcept;
/** constructs a collection /** constructs a collection
@param _rElements @param _rElements

View File

@ -74,7 +74,7 @@ namespace connectivity
bool m_bModified : 1; // value was changed bool m_bModified : 1; // value was changed
bool m_bSigned : 1; // value is signed bool m_bSigned : 1; // value is signed
void free(); void free() noexcept;
public: public:
ORowSetValue() ORowSetValue()
@ -98,7 +98,7 @@ namespace connectivity
operator=(_rRH); operator=(_rRH);
} }
ORowSetValue(ORowSetValue&& _rRH) ORowSetValue(ORowSetValue&& _rRH) noexcept
:m_eTypeKind(css::sdbc::DataType::VARCHAR) :m_eTypeKind(css::sdbc::DataType::VARCHAR)
,m_bNull(true) ,m_bNull(true)
,m_bBound(true) ,m_bBound(true)
@ -106,7 +106,7 @@ namespace connectivity
,m_bSigned(true) ,m_bSigned(true)
{ {
m_aValue.m_pString = nullptr; m_aValue.m_pString = nullptr;
operator=(_rRH); operator=(std::move(_rRH));
} }
ORowSetValue(const OUString& _rRH) ORowSetValue(const OUString& _rRH)
@ -279,7 +279,7 @@ namespace connectivity
} }
ORowSetValue& operator=(const ORowSetValue& _rRH); ORowSetValue& operator=(const ORowSetValue& _rRH);
ORowSetValue& operator=(ORowSetValue&& _rRH); ORowSetValue& operator=(ORowSetValue&& _rRH) noexcept;
// simple types // simple types
ORowSetValue& operator=(bool _rRH); ORowSetValue& operator=(bool _rRH);

View File

@ -72,8 +72,8 @@ namespace dbtools
const css::uno::Reference< css::sdbc::XConnection >& _connection ); const css::uno::Reference< css::sdbc::XConnection >& _connection );
DatabaseMetaData( const DatabaseMetaData& _copyFrom ); DatabaseMetaData( const DatabaseMetaData& _copyFrom );
DatabaseMetaData& operator=( const DatabaseMetaData& _copyFrom ); DatabaseMetaData& operator=( const DatabaseMetaData& _copyFrom );
DatabaseMetaData( DatabaseMetaData&& _copyFrom ); DatabaseMetaData(DatabaseMetaData&& _copyFrom) noexcept;
DatabaseMetaData& operator=( DatabaseMetaData&& _copyFrom ); DatabaseMetaData& operator=(DatabaseMetaData&& _copyFrom) noexcept;
~DatabaseMetaData(); ~DatabaseMetaData();

View File

@ -76,7 +76,7 @@ namespace drawinglayer { namespace primitive2d {
explicit Primitive2DContainer( size_type count ) : deque(count) {} explicit Primitive2DContainer( size_type count ) : deque(count) {}
virtual ~Primitive2DContainer() override; virtual ~Primitive2DContainer() override;
Primitive2DContainer( const Primitive2DContainer& other ) : deque(other) {} 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( const std::deque< Primitive2DReference >& other ) : deque(other) {}
Primitive2DContainer( std::initializer_list<Primitive2DReference> init ) : deque(init) {} Primitive2DContainer( std::initializer_list<Primitive2DReference> init ) : deque(init) {}
template <class Iter> template <class Iter>
@ -87,7 +87,7 @@ namespace drawinglayer { namespace primitive2d {
virtual void append(Primitive2DContainer&& rSource) override; virtual void append(Primitive2DContainer&& rSource) override;
void append(const Primitive2DSequence& rSource); void append(const Primitive2DSequence& rSource);
Primitive2DContainer& operator=(const Primitive2DContainer& r) { deque::operator=(r); return *this; } 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;
bool operator!=(const Primitive2DContainer& rB) const { return !operator==(rB); } bool operator!=(const Primitive2DContainer& rB) const { return !operator==(rB); }
basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& aViewInformation) const; basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& aViewInformation) const;

View File

@ -60,14 +60,14 @@ namespace drawinglayer { namespace primitive3d {
explicit Primitive3DContainer() {} explicit Primitive3DContainer() {}
explicit Primitive3DContainer( size_type count ) : deque(count) {} explicit Primitive3DContainer( size_type count ) : deque(count) {}
Primitive3DContainer( const Primitive3DContainer& other ) : deque(other) {} 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) {} Primitive3DContainer( std::initializer_list<Primitive3DReference> init ) : deque(init) {}
template <class Iter> template <class Iter>
Primitive3DContainer(Iter first, Iter last) : deque(first, last) {} Primitive3DContainer(Iter first, Iter last) : deque(first, last) {}
void append(const Primitive3DContainer& rSource); void append(const Primitive3DContainer& rSource);
Primitive3DContainer& operator=(const Primitive3DContainer& r) { deque::operator=(r); return *this; } 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;
bool operator!=(const Primitive3DContainer& rB) const { return !operator==(rB); } bool operator!=(const Primitive3DContainer& rB) const { return !operator==(rB); }
basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& aViewInformation) const; basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& aViewInformation) const;

View File

@ -69,7 +69,7 @@ public:
SvxBrushItem( const OUString& rLink, const OUString& rFilter, SvxBrushItem( const OUString& rLink, const OUString& rFilter,
SvxGraphicPosition ePos, sal_uInt16 nWhich ); SvxGraphicPosition ePos, sal_uInt16 nWhich );
SvxBrushItem( const SvxBrushItem& ); SvxBrushItem( const SvxBrushItem& );
SvxBrushItem( SvxBrushItem&& ); SvxBrushItem(SvxBrushItem&&) noexcept;
virtual ~SvxBrushItem() override; virtual ~SvxBrushItem() override;

View File

@ -237,7 +237,7 @@ int cow_wrapper_client::queryUnmodified() const
/** Move-construct and steal rSrc shared resource /** 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 ) m_pimpl( rSrc.m_pimpl )
{ {
rSrc.m_pimpl = nullptr; rSrc.m_pimpl = nullptr;
@ -261,7 +261,7 @@ int cow_wrapper_client::queryUnmodified() const
} }
/// stealing rSrc's resource /// 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 // self-movement guts ourself, see also 17.6.4.9
release(); release();

View File

@ -112,7 +112,7 @@ public:
struct Pair { sal_uInt16 wid1, wid2; }; struct Pair { sal_uInt16 wid1, wid2; };
SfxItemSet( const SfxItemSet& ); SfxItemSet( const SfxItemSet& );
SfxItemSet( SfxItemSet&& ); SfxItemSet( SfxItemSet&& ) noexcept;
SfxItemSet( SfxItemPool&); SfxItemSet( SfxItemPool&);
template<sal_uInt16... WIDs> SfxItemSet( template<sal_uInt16... WIDs> SfxItemSet(

View File

@ -27,11 +27,11 @@ public:
SharedString( rtl_uString* pData, rtl_uString* pDataIgnoreCase ); SharedString( rtl_uString* pData, rtl_uString* pDataIgnoreCase );
explicit SharedString( const OUString& rStr ); explicit SharedString( const OUString& rStr );
SharedString( const SharedString& r ); SharedString( const SharedString& r );
SharedString( SharedString&& r ); SharedString(SharedString&& r) noexcept;
~SharedString(); ~SharedString();
SharedString& operator= ( const SharedString& r ); 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;
bool operator!= ( const SharedString& r ) const; bool operator!= ( const SharedString& r ) const;

View File

@ -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 void*, SAL_UNUSED_PARAMETER long, SAL_UNUSED_PARAMETER SotClipboardFormatId = SotClipboardFormatId::STRING);
DdeData(SAL_UNUSED_PARAMETER const OUString&); DdeData(SAL_UNUSED_PARAMETER const OUString&);
DdeData(const DdeData&); DdeData(const DdeData&);
DdeData(DdeData&&); DdeData(DdeData&&) noexcept;
~DdeData(); ~DdeData();
void const * getData() const; void const * getData() const;
@ -70,7 +70,7 @@ public:
SotClipboardFormatId GetFormat() const; SotClipboardFormatId GetFormat() const;
DdeData& operator=(const DdeData&); DdeData& operator=(const DdeData&);
DdeData& operator=(DdeData&&); DdeData& operator=(DdeData&&) noexcept;
static sal_uLong GetExternalFormat(SotClipboardFormatId nFmt); static sal_uLong GetExternalFormat(SotClipboardFormatId nFmt);
static SotClipboardFormatId GetInternalFormat(sal_uLong nFmt); static SotClipboardFormatId GetInternalFormat(sal_uLong nFmt);

View File

@ -68,7 +68,7 @@ namespace svx
public: public:
ODataAccessDescriptor(); ODataAccessDescriptor();
ODataAccessDescriptor( const ODataAccessDescriptor& _rSource ); ODataAccessDescriptor( const ODataAccessDescriptor& _rSource );
ODataAccessDescriptor( ODataAccessDescriptor&& _rSource ); ODataAccessDescriptor(ODataAccessDescriptor&& _rSource) noexcept;
ODataAccessDescriptor( const css::uno::Reference< css::beans::XPropertySet >& _rValues ); ODataAccessDescriptor( const css::uno::Reference< css::beans::XPropertySet >& _rValues );
ODataAccessDescriptor( const css::uno::Sequence< css::beans::PropertyValue >& _rValues ); ODataAccessDescriptor( const css::uno::Sequence< css::beans::PropertyValue >& _rValues );
@ -76,7 +76,7 @@ namespace svx
ODataAccessDescriptor( const css::uno::Any& _rValues ); ODataAccessDescriptor( const css::uno::Any& _rValues );
ODataAccessDescriptor& operator=(const ODataAccessDescriptor& _rSource); ODataAccessDescriptor& operator=(const ODataAccessDescriptor& _rSource);
ODataAccessDescriptor& operator=(ODataAccessDescriptor&& _rSource); ODataAccessDescriptor& operator=(ODataAccessDescriptor&& _rSource) noexcept;
~ODataAccessDescriptor(); ~ODataAccessDescriptor();

View File

@ -52,9 +52,9 @@ namespace drawinglayer
SdrFormTextAttribute(const SfxItemSet& rSet); SdrFormTextAttribute(const SfxItemSet& rSet);
SdrFormTextAttribute(); SdrFormTextAttribute();
SdrFormTextAttribute(const SdrFormTextAttribute& rCandidate); SdrFormTextAttribute(const SdrFormTextAttribute& rCandidate);
SdrFormTextAttribute(SdrFormTextAttribute&& rCandidate); SdrFormTextAttribute(SdrFormTextAttribute&& rCandidate) noexcept;
SdrFormTextAttribute& operator=(const SdrFormTextAttribute& rCandidate); SdrFormTextAttribute& operator=(const SdrFormTextAttribute& rCandidate);
SdrFormTextAttribute& operator=(SdrFormTextAttribute&& rCandidate); SdrFormTextAttribute& operator=(SdrFormTextAttribute&& rCandidate) noexcept;
~SdrFormTextAttribute(); ~SdrFormTextAttribute();
// checks if the incarnation is default constructed // checks if the incarnation is default constructed

View File

@ -80,9 +80,9 @@ namespace drawinglayer
SdrTextAttribute(); SdrTextAttribute();
SdrTextAttribute(const SdrTextAttribute& rCandidate); SdrTextAttribute(const SdrTextAttribute& rCandidate);
SdrTextAttribute(SdrTextAttribute&& rCandidate); SdrTextAttribute(SdrTextAttribute&& rCandidate) noexcept;
SdrTextAttribute& operator=(const SdrTextAttribute& rCandidate); SdrTextAttribute& operator=(const SdrTextAttribute& rCandidate);
SdrTextAttribute& operator=(SdrTextAttribute&& rCandidate); SdrTextAttribute& operator=(SdrTextAttribute&& rCandidate) noexcept;
~SdrTextAttribute(); ~SdrTextAttribute();
// checks if the incarnation is default constructed // checks if the incarnation is default constructed

View File

@ -35,7 +35,7 @@ template<typename T> class SAL_DLLPUBLIC_RTTI SvRef final {
public: public:
SvRef(): pObj(nullptr) {} SvRef(): pObj(nullptr) {}
SvRef(SvRef&& rObj) SvRef(SvRef&& rObj) noexcept
{ {
pObj = rObj.pObj; pObj = rObj.pObj;
rObj.pObj = nullptr; rObj.pObj = nullptr;

View File

@ -144,7 +144,7 @@ public:
/** /**
* Move constructor. * Move constructor.
*/ */
Content( Content&& rOther ); Content(Content&& rOther) noexcept;
/** /**
* Destructor. * Destructor.
@ -161,7 +161,7 @@ public:
/** /**
* Move assignment operator. * Move assignment operator.
*/ */
Content& operator=( Content&& rOther ); Content& operator=(Content&& rOther) noexcept;
/** /**
* Constructor. This method should be used, if the exception thrown * Constructor. This method should be used, if the exception thrown

View File

@ -113,7 +113,7 @@ public:
virtual ~Bitmap(); virtual ~Bitmap();
Bitmap& operator=( const Bitmap& rBitmap ); Bitmap& operator=( const Bitmap& rBitmap );
Bitmap& operator=( Bitmap&& rBitmap ); Bitmap& operator=( Bitmap&& rBitmap ) noexcept;
inline bool operator!() const; inline bool operator!() const;
bool operator==( const Bitmap& rBitmap ) const; bool operator==( const Bitmap& rBitmap ) const;
bool operator!=( const Bitmap& rBitmap ) const { return !operator==(rBitmap); } bool operator!=( const Bitmap& rBitmap ) const { return !operator==(rBitmap); }

View File

@ -116,7 +116,7 @@ public:
Graphic(); Graphic();
Graphic( const GraphicExternalLink& rGraphicLink ); Graphic( const GraphicExternalLink& rGraphicLink );
Graphic( const Graphic& rGraphic ); Graphic( const Graphic& rGraphic );
Graphic( Graphic&& rGraphic ); Graphic( Graphic&& rGraphic ) noexcept;
Graphic( const Bitmap& rBmp ); Graphic( const Bitmap& rBmp );
Graphic( const BitmapEx& rBmpEx ); Graphic( const BitmapEx& rBmpEx );
Graphic( const VectorGraphicDataPtr& rVectorGraphicDataPtr ); Graphic( const VectorGraphicDataPtr& rVectorGraphicDataPtr );
@ -125,7 +125,7 @@ public:
Graphic( const css::uno::Reference< css::graphic::XGraphic >& rxGraphic ); Graphic( const css::uno::Reference< css::graphic::XGraphic >& rxGraphic );
Graphic& operator=( const Graphic& rGraphic ); 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;
bool operator!=( const Graphic& rGraphic ) const; bool operator!=( const Graphic& rGraphic ) const;

View File

@ -284,7 +284,7 @@ public:
TransferableDataHelper(); TransferableDataHelper();
TransferableDataHelper( const TransferableDataHelper& rDataHelper ); TransferableDataHelper( const TransferableDataHelper& rDataHelper );
TransferableDataHelper( TransferableDataHelper&& rDataHelper ); TransferableDataHelper( TransferableDataHelper&& rDataHelper ) noexcept;
TransferableDataHelper( const css::uno::Reference< css::datatransfer::XTransferable >& rxTransferable ); TransferableDataHelper( const css::uno::Reference< css::datatransfer::XTransferable >& rxTransferable );
~TransferableDataHelper(); ~TransferableDataHelper();

View File

@ -51,7 +51,7 @@ public:
PoEntry( const PoEntry& rPo ); PoEntry( const PoEntry& rPo );
PoEntry& operator=( 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 const & getSourceFile() const; ///< Get name of file from which entry is extracted
OString getGroupId() const; OString getGroupId() const;

View File

@ -322,7 +322,7 @@ PoEntry& PoEntry::operator=(const PoEntry& rPo)
return *this; return *this;
} }
PoEntry& PoEntry::operator=(PoEntry&& rPo) PoEntry& PoEntry::operator=(PoEntry&& rPo) noexcept
{ {
m_pGenPo = std::move(rPo.m_pGenPo); m_pGenPo = std::move(rPo.m_pGenPo);
m_bIsInitialized = std::move(rPo.m_bIsInitialized); m_bIsInitialized = std::move(rPo.m_bIsInitialized);

View File

@ -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 ) ) maImpl( std::move( rSrc.maImpl ) )
{ {
} }
@ -68,7 +68,7 @@ cow_wrapper_client2& cow_wrapper_client2::operator=( const cow_wrapper_client2&
return *this; 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); 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 ) ) maImpl( std::move( rSrc.maImpl ) )
{ {
} }
@ -146,7 +146,7 @@ cow_wrapper_client3& cow_wrapper_client3::operator=( const cow_wrapper_client3&
return *this; 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); 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 ) ) maImpl( std::move( rSrc.maImpl ) )
{ {
} }
@ -276,7 +276,7 @@ cow_wrapper_client5& cow_wrapper_client5::operator=( const cow_wrapper_client5&
return *this; 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 ); maImpl = std::move( rSrc.maImpl );

View File

@ -70,9 +70,9 @@ public:
~cow_wrapper_client2(); ~cow_wrapper_client2();
cow_wrapper_client2( const 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=( const cow_wrapper_client2& );
cow_wrapper_client2& operator=( cow_wrapper_client2&& ); cow_wrapper_client2& operator=(cow_wrapper_client2&&) noexcept;
void modify( int nVal ); void modify( int nVal );
int queryUnmodified() const; int queryUnmodified() const;
@ -101,9 +101,9 @@ public:
~cow_wrapper_client3(); ~cow_wrapper_client3();
cow_wrapper_client3( const 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=( const cow_wrapper_client3& );
cow_wrapper_client3& operator=( cow_wrapper_client3&& ); cow_wrapper_client3& operator=(cow_wrapper_client3&&) noexcept;
void modify( int nVal ); void modify( int nVal );
int queryUnmodified() const; int queryUnmodified() const;
@ -182,9 +182,9 @@ public:
~cow_wrapper_client5(); ~cow_wrapper_client5();
cow_wrapper_client5( const 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=( const cow_wrapper_client5& );
cow_wrapper_client5& operator=( cow_wrapper_client5&& ); cow_wrapper_client5& operator=(cow_wrapper_client5&&) noexcept;
int queryUnmodified() const { return *maImpl; } int queryUnmodified() const { return *maImpl; }
sal_uInt32 use_count() const { return maImpl.use_count(); } sal_uInt32 use_count() const { return maImpl.use_count(); }

View File

@ -267,7 +267,7 @@ public:
explicit ScCondFormatItem(); explicit ScCondFormatItem();
explicit ScCondFormatItem(sal_uInt32 nIndex); explicit ScCondFormatItem(sal_uInt32 nIndex);
explicit ScCondFormatItem(const ScCondFormatIndexes& ); explicit ScCondFormatItem(const ScCondFormatIndexes& );
explicit ScCondFormatItem(ScCondFormatIndexes&& ); explicit ScCondFormatItem(ScCondFormatIndexes&&) noexcept;
virtual ~ScCondFormatItem() override; virtual ~ScCondFormatItem() override;

View File

@ -48,10 +48,10 @@ struct SC_DLLPUBLIC ScCellValue
ScCellValue( double fValue ); ScCellValue( double fValue );
ScCellValue( const svl::SharedString& rString ); ScCellValue( const svl::SharedString& rString );
ScCellValue( const ScCellValue& r ); ScCellValue( const ScCellValue& r );
ScCellValue( ScCellValue&& r ); ScCellValue(ScCellValue&& r) noexcept;
~ScCellValue(); ~ScCellValue();
void clear(); void clear() noexcept;
void set( double fValue ); void set( double fValue );
void set( const svl::SharedString& rStr ); void set( const svl::SharedString& rStr );
@ -89,7 +89,7 @@ struct SC_DLLPUBLIC ScCellValue
bool equalsWithoutFormat( const ScCellValue& r ) const; bool equalsWithoutFormat( const ScCellValue& r ) const;
ScCellValue& operator= ( const ScCellValue& r ); ScCellValue& operator= ( const ScCellValue& r );
ScCellValue& operator= ( ScCellValue&& r ); ScCellValue& operator=(ScCellValue&& r) noexcept;
ScCellValue& operator= ( const ScRefCellValue& r ); ScCellValue& operator= ( const ScRefCellValue& r );
void swap( ScCellValue& r ); void swap( ScCellValue& r );

View File

@ -78,7 +78,7 @@ public:
bool bOutputEnabled ); bool bOutputEnabled );
public: public:
GroupScope( GroupScope&& r ); GroupScope(GroupScope&& r) noexcept;
~GroupScope(); ~GroupScope();
/** /**

View File

@ -49,7 +49,7 @@ friend class ScDocument; // for FillInfo
public: public:
ScMarkArray(); ScMarkArray();
ScMarkArray( ScMarkArray&& rArray ); ScMarkArray( ScMarkArray&& rArray ) noexcept;
ScMarkArray( const ScMarkArray& rArray ); ScMarkArray( const ScMarkArray& rArray );
~ScMarkArray(); ~ScMarkArray();
void Reset( bool bMarked = false, SCSIZE nNeeded = 1 ); void Reset( bool bMarked = false, SCSIZE nNeeded = 1 );
@ -62,7 +62,7 @@ public:
bool HasMarks() const { return ( nCount > 1 || ( nCount == 1 && pData[0].bMarked ) ); } bool HasMarks() const { return ( nCount > 1 || ( nCount == 1 && pData[0].bMarked ) ); }
ScMarkArray& operator=( ScMarkArray const & rSource ); ScMarkArray& operator=( ScMarkArray const & rSource );
ScMarkArray& operator=( ScMarkArray&& rSource ); ScMarkArray& operator=(ScMarkArray&& rSource) noexcept;
bool operator==(ScMarkArray const & rOther ) const; bool operator==(ScMarkArray const & rOther ) const;
bool Search( SCROW nRow, SCSIZE& nIndex ) const; bool Search( SCROW nRow, SCSIZE& nIndex ) const;

View File

@ -163,7 +163,7 @@ class TableColumnBlockPositionSet
public: public:
TableColumnBlockPositionSet( ScDocument& rDoc, SCTAB nTab ); TableColumnBlockPositionSet( ScDocument& rDoc, SCTAB nTab );
TableColumnBlockPositionSet( TableColumnBlockPositionSet&& rOther ); TableColumnBlockPositionSet(TableColumnBlockPositionSet&& rOther) noexcept;
~TableColumnBlockPositionSet(); ~TableColumnBlockPositionSet();
ColumnBlockPosition* getBlockPosition( SCCOL nCol ); ColumnBlockPosition* getBlockPosition( SCCOL nCol );

View File

@ -45,11 +45,11 @@ public:
ScCaptionPtr(); ScCaptionPtr();
explicit ScCaptionPtr( SdrCaptionObj* p ); explicit ScCaptionPtr( SdrCaptionObj* p );
ScCaptionPtr( const ScCaptionPtr& r ); ScCaptionPtr( const ScCaptionPtr& r );
ScCaptionPtr( ScCaptionPtr&& r ); ScCaptionPtr(ScCaptionPtr&& r) noexcept;
~ScCaptionPtr(); ~ScCaptionPtr();
ScCaptionPtr& operator=( const ScCaptionPtr& r ); ScCaptionPtr& operator=( const ScCaptionPtr& r );
ScCaptionPtr& operator=( ScCaptionPtr&& r ); ScCaptionPtr& operator=(ScCaptionPtr&& r) noexcept;
explicit operator bool() const { return mpCaption != nullptr; } explicit operator bool() const { return mpCaption != nullptr; }
const SdrCaptionObj* get() const { return mpCaption; } const SdrCaptionObj* get() const { return mpCaption; }
SdrCaptionObj* get() { return mpCaption; } SdrCaptionObj* get() { return mpCaption; }
@ -131,7 +131,7 @@ private:
Used by move-ctor and move assignment operator. 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. */ /** Dissolve list when the caption object is released or gone. */
void dissolve(); void dissolve();

View File

@ -34,12 +34,12 @@ class SAL_WARN_UNUSED SC_DLLPUBLIC ScRangeList final : public SvRefBase
public: public:
ScRangeList(); ScRangeList();
ScRangeList( const ScRangeList& rList ); ScRangeList( const ScRangeList& rList );
ScRangeList( ScRangeList&& rList ); ScRangeList(ScRangeList&& rList) noexcept;
ScRangeList( const ScRange& rRange ); ScRangeList( const ScRange& rRange );
virtual ~ScRangeList() override; virtual ~ScRangeList() override;
ScRangeList& operator=(const ScRangeList& rList); ScRangeList& operator=(const ScRangeList& rList);
ScRangeList& operator=(ScRangeList&& rList); ScRangeList& operator=(ScRangeList&& rList) noexcept;
ScRefFlags Parse( const OUString&, const ScDocument*, ScRefFlags Parse( const OUString&, const ScDocument*,
formula::FormulaGrammar::AddressConvention eConv = formula::FormulaGrammar::CONV_OOO, formula::FormulaGrammar::AddressConvention eConv = formula::FormulaGrammar::CONV_OOO,

View File

@ -677,7 +677,7 @@ ScCondFormatItem::ScCondFormatItem( const ScCondFormatIndexes& rIndex ):
{ {
} }
ScCondFormatItem::ScCondFormatItem( ScCondFormatIndexes&& aIndex ): ScCondFormatItem::ScCondFormatItem( ScCondFormatIndexes&& aIndex ) noexcept:
SfxPoolItem( ATTR_CONDITIONAL ), SfxPoolItem( ATTR_CONDITIONAL ),
maIndex( std::move(aIndex) ) maIndex( std::move(aIndex) )
{ {

View File

@ -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) : meType(r.meType)
, mfValue(r.mfValue) , mfValue(r.mfValue)
{ {
@ -270,7 +270,7 @@ ScCellValue::~ScCellValue()
clear(); clear();
} }
void ScCellValue::clear() void ScCellValue::clear() noexcept
{ {
switch (meType) switch (meType)
{ {
@ -513,7 +513,7 @@ ScCellValue& ScCellValue::operator= ( const ScCellValue& r )
return *this; return *this;
} }
ScCellValue& ScCellValue::operator=(ScCellValue&& rCell) ScCellValue& ScCellValue::operator=(ScCellValue&& rCell) noexcept
{ {
clear(); clear();

View File

@ -32,7 +32,7 @@ ScMarkArray::ScMarkArray() :
} }
// Move constructor // Move constructor
ScMarkArray::ScMarkArray( ScMarkArray&& rOther ) ScMarkArray::ScMarkArray( ScMarkArray&& rOther ) noexcept
{ {
operator=(std::move(rOther)); operator=(std::move(rOther));
} }
@ -338,7 +338,7 @@ ScMarkArray& ScMarkArray::operator=( const ScMarkArray& rOther )
return *this; return *this;
} }
ScMarkArray& ScMarkArray::operator=( ScMarkArray&& rOther ) ScMarkArray& ScMarkArray::operator=(ScMarkArray&& rOther) noexcept
{ {
nCount = rOther.nCount; nCount = rOther.nCount;
nLimit = rOther.nLimit; nLimit = rOther.nLimit;

View File

@ -120,7 +120,7 @@ TableColumnBlockPositionSet::TableColumnBlockPositionSet( ScDocument& rDoc, SCTA
} }
} }
TableColumnBlockPositionSet::TableColumnBlockPositionSet( TableColumnBlockPositionSet&& rOther ) : TableColumnBlockPositionSet::TableColumnBlockPositionSet( TableColumnBlockPositionSet&& rOther ) noexcept :
mpImpl(std::move(rOther.mpImpl)) {} mpImpl(std::move(rOther.mpImpl)) {}
TableColumnBlockPositionSet::~TableColumnBlockPositionSet() {} TableColumnBlockPositionSet::~TableColumnBlockPositionSet() {}

View File

@ -482,15 +482,15 @@ ScCaptionPtr::ScCaptionPtr( const ScCaptionPtr& r ) :
} }
} }
ScCaptionPtr::ScCaptionPtr( ScCaptionPtr&& r ) : ScCaptionPtr::ScCaptionPtr(ScCaptionPtr&& r) noexcept
mpHead(r.mpHead), mpNext(r.mpNext), mpCaption(r.mpCaption), mbNotOwner(false) : mpHead(r.mpHead), mpNext(r.mpNext), mpCaption(r.mpCaption), mbNotOwner(false)
{ {
r.replaceInList( this ); r.replaceInList( this );
r.mpCaption = nullptr; r.mpCaption = nullptr;
r.mbNotOwner = false; r.mbNotOwner = false;
} }
ScCaptionPtr& ScCaptionPtr::operator=( ScCaptionPtr&& r ) ScCaptionPtr& ScCaptionPtr::operator=(ScCaptionPtr&& r) noexcept
{ {
assert(this != &r); assert(this != &r);
@ -560,7 +560,7 @@ void ScCaptionPtr::newHead()
mpHead = new Head(this); mpHead = new Head(this);
} }
void ScCaptionPtr::replaceInList( ScCaptionPtr* pNew ) void ScCaptionPtr::replaceInList(ScCaptionPtr* pNew) noexcept
{ {
if (!mpHead && !mpNext) if (!mpHead && !mpNext)
return; return;

View File

@ -126,7 +126,7 @@ FormulaLogger::GroupScope::GroupScope(
const ScFormulaCell& rCell, bool bOutputEnabled ) : const ScFormulaCell& rCell, bool bOutputEnabled ) :
mpImpl(std::make_unique<Impl>(rLogger, rPrefix, rDoc, rCell, 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() {} FormulaLogger::GroupScope::~GroupScope() {}

View File

@ -983,7 +983,7 @@ ScRangeList::ScRangeList( const ScRangeList& rList ) :
{ {
} }
ScRangeList::ScRangeList( ScRangeList&& rList ) : ScRangeList::ScRangeList(ScRangeList&& rList) noexcept :
SvRefBase(), SvRefBase(),
maRanges(std::move(rList.maRanges)), maRanges(std::move(rList.maRanges)),
mnMaxRowUsed(rList.mnMaxRowUsed) mnMaxRowUsed(rList.mnMaxRowUsed)
@ -1004,7 +1004,7 @@ ScRangeList& ScRangeList::operator=(const ScRangeList& rList)
return *this; return *this;
} }
ScRangeList& ScRangeList::operator=(ScRangeList&& rList) ScRangeList& ScRangeList::operator=(ScRangeList&& rList) noexcept
{ {
maRanges = std::move(rList.maRanges); maRanges = std::move(rList.maRanges);
mnMaxRowUsed = rList.mnMaxRowUsed; mnMaxRowUsed = rList.mnMaxRowUsed;

View File

@ -1198,10 +1198,10 @@ public:
WalkElementBlocksMultipleValues( const WalkElementBlocksMultipleValues& ) = delete; WalkElementBlocksMultipleValues( const WalkElementBlocksMultipleValues& ) = delete;
WalkElementBlocksMultipleValues& operator= ( 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) {} mpOp(r.mpOp), maRes(std::move(r.maRes)), mbFirst(r.mbFirst) {}
WalkElementBlocksMultipleValues& operator= ( WalkElementBlocksMultipleValues&& r ) WalkElementBlocksMultipleValues& operator=(WalkElementBlocksMultipleValues&& r) noexcept
{ {
mpOp = r.mpOp; mpOp = r.mpOp;
maRes = std::move(r.maRes); maRes = std::move(r.maRes);
@ -1689,13 +1689,13 @@ public:
CompareMatrixFunc( const CompareMatrixFunc& ) = delete; CompareMatrixFunc( const CompareMatrixFunc& ) = delete;
CompareMatrixFunc& operator= ( const CompareMatrixFunc& ) = delete; CompareMatrixFunc& operator= ( const CompareMatrixFunc& ) = delete;
CompareMatrixFunc( CompareMatrixFunc&& r ) : CompareMatrixFunc(CompareMatrixFunc&& r) noexcept :
mrComp(r.mrComp), mrComp(r.mrComp),
mnMatPos(r.mnMatPos), mnMatPos(r.mnMatPos),
mpOptions(r.mpOptions), mpOptions(r.mpOptions),
maResValues(std::move(r.maResValues)) {} maResValues(std::move(r.maResValues)) {}
CompareMatrixFunc& operator= ( CompareMatrixFunc&& r ) CompareMatrixFunc& operator=(CompareMatrixFunc&& r) noexcept
{ {
mrComp = r.mrComp; mrComp = r.mrComp;
mnMatPos = r.mnMatPos; mnMatPos = r.mnMatPos;
@ -1815,13 +1815,13 @@ public:
CompareMatrixToNumericFunc( const CompareMatrixToNumericFunc& ) = delete; CompareMatrixToNumericFunc( const CompareMatrixToNumericFunc& ) = delete;
CompareMatrixToNumericFunc& operator= ( const CompareMatrixToNumericFunc& ) = delete; CompareMatrixToNumericFunc& operator= ( const CompareMatrixToNumericFunc& ) = delete;
CompareMatrixToNumericFunc( CompareMatrixToNumericFunc&& r ) : CompareMatrixToNumericFunc(CompareMatrixToNumericFunc&& r) noexcept :
mrComp(r.mrComp), mrComp(r.mrComp),
mfRightValue(r.mfRightValue), mfRightValue(r.mfRightValue),
mpOptions(r.mpOptions), mpOptions(r.mpOptions),
maResValues(std::move(r.maResValues)) {} maResValues(std::move(r.maResValues)) {}
CompareMatrixToNumericFunc& operator= ( CompareMatrixToNumericFunc&& r ) CompareMatrixToNumericFunc& operator=(CompareMatrixToNumericFunc&& r) noexcept
{ {
mrComp = r.mrComp; mrComp = r.mrComp;
mfRightValue = r.mfRightValue; mfRightValue = r.mfRightValue;
@ -1913,13 +1913,13 @@ public:
ToDoubleArray( const ToDoubleArray& ) = delete; ToDoubleArray( const ToDoubleArray& ) = delete;
ToDoubleArray& operator= ( const ToDoubleArray& ) = delete; ToDoubleArray& operator= ( const ToDoubleArray& ) = delete;
ToDoubleArray( ToDoubleArray&& r ) : ToDoubleArray(ToDoubleArray&& r) noexcept :
mfNaN(r.mfNaN), mbEmptyAsZero(r.mbEmptyAsZero) mfNaN(r.mfNaN), mbEmptyAsZero(r.mbEmptyAsZero)
{ {
moveArray(r); moveArray(r);
} }
ToDoubleArray& operator= ( ToDoubleArray&& r ) ToDoubleArray& operator=(ToDoubleArray&& r) noexcept
{ {
mfNaN = r.mfNaN; mfNaN = r.mfNaN;
mbEmptyAsZero = r.mbEmptyAsZero; mbEmptyAsZero = r.mbEmptyAsZero;

View File

@ -81,7 +81,7 @@ public:
implementation object. implementation object.
*/ */
Iterator (const Iterator& rIterator); Iterator (const Iterator& rIterator);
Iterator (Iterator&& rIterator); Iterator(Iterator&& rIterator) noexcept;
/** Create a new iterator with the implementation object being the /** Create a new iterator with the implementation object being the
provided one. provided one.
@ -98,7 +98,7 @@ public:
The iterator which to assign from. The iterator which to assign from.
*/ */
Iterator& operator= (const Iterator& rIterator); Iterator& operator= (const Iterator& rIterator);
Iterator& operator= (Iterator&& rIterator); Iterator& operator=(Iterator&& rIterator) noexcept;
/** Return the current position of the iterator. /** Return the current position of the iterator.
@return @return

View File

@ -65,7 +65,7 @@ Iterator::Iterator (const Iterator& rIterator)
{ {
} }
Iterator::Iterator (Iterator&& rIterator) Iterator::Iterator(Iterator&& rIterator) noexcept
: mxIterator(std::move(rIterator.mxIterator)) : mxIterator(std::move(rIterator.mxIterator))
{ {
} }
@ -91,7 +91,7 @@ Iterator& Iterator::operator= (const Iterator& rIterator)
return *this; return *this;
} }
Iterator& Iterator::operator= (Iterator&& rIterator) Iterator& Iterator::operator=(Iterator&& rIterator) noexcept
{ {
mxIterator = std::move(rIterator.mxIterator); mxIterator = std::move(rIterator.mxIterator);
return *this; return *this;

View File

@ -216,7 +216,7 @@ SfxItemSet::SfxItemSet( const SfxItemSet& rASet )
memcpy( m_pWhichRanges, rASet.m_pWhichRanges, sizeof( sal_uInt16 ) * cnt); 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_pPool( rASet.m_pPool )
, m_pParent( rASet.m_pParent ) , m_pParent( rASet.m_pParent )
, m_pItems( std::move(rASet.m_pItems) ) , m_pItems( std::move(rASet.m_pItems) )

View File

@ -44,7 +44,7 @@ SharedString::SharedString( const SharedString& r ) : mpData(r.mpData), mpDataIg
rtl_uString_acquire(mpDataIgnoreCase); 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.mpData = nullptr;
r.mpDataIgnoreCase = nullptr; r.mpDataIgnoreCase = nullptr;
@ -79,7 +79,7 @@ SharedString& SharedString::operator= ( const SharedString& r )
return *this; return *this;
} }
SharedString& SharedString::operator= ( SharedString&& r ) SharedString& SharedString::operator=(SharedString&& r) noexcept
{ {
if (mpData) if (mpData)
rtl_uString_release(mpData); rtl_uString_release(mpData);

View File

@ -67,7 +67,7 @@ DdeData::DdeData(const DdeData& rData)
Lock(); Lock();
} }
DdeData::DdeData(DdeData&& rData) DdeData::DdeData(DdeData&& rData) noexcept
: xImp(std::move(rData.xImp)) : xImp(std::move(rData.xImp))
{ {
} }
@ -115,7 +115,7 @@ DdeData& DdeData::operator=(const DdeData& rData)
return *this; return *this;
} }
DdeData& DdeData::operator=(DdeData&& rData) DdeData& DdeData::operator=(DdeData&& rData) noexcept
{ {
xImp = std::move(rData.xImp); xImp = std::move(rData.xImp);
return *this; return *this;

View File

@ -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; return *this;
} }
DdeData& DdeData::operator=(DdeData&&) DdeData& DdeData::operator=(DdeData&&) noexcept
{ {
return *this; return *this;
} }

View File

@ -53,7 +53,7 @@ namespace drawinglayer
SdrFormTextOutlineAttribute(); SdrFormTextOutlineAttribute();
SdrFormTextOutlineAttribute(const SdrFormTextOutlineAttribute& rCandidate); SdrFormTextOutlineAttribute(const SdrFormTextOutlineAttribute& rCandidate);
SdrFormTextOutlineAttribute& operator=(const SdrFormTextOutlineAttribute& rCandidate); SdrFormTextOutlineAttribute& operator=(const SdrFormTextOutlineAttribute& rCandidate);
SdrFormTextOutlineAttribute& operator=(SdrFormTextOutlineAttribute&& rCandidate); SdrFormTextOutlineAttribute& operator=(SdrFormTextOutlineAttribute&& rCandidate) noexcept;
~SdrFormTextOutlineAttribute(); ~SdrFormTextOutlineAttribute();
// checks if the incarnation is default constructed // checks if the incarnation is default constructed

View File

@ -241,7 +241,7 @@ namespace svx
{ {
} }
ODataAccessDescriptor::ODataAccessDescriptor( ODataAccessDescriptor&& _rSource ) ODataAccessDescriptor::ODataAccessDescriptor(ODataAccessDescriptor&& _rSource) noexcept
:m_pImpl(std::move(_rSource.m_pImpl)) :m_pImpl(std::move(_rSource.m_pImpl))
{ {
} }
@ -253,7 +253,7 @@ namespace svx
return *this; return *this;
} }
ODataAccessDescriptor& ODataAccessDescriptor::operator=(ODataAccessDescriptor&& _rSource) ODataAccessDescriptor& ODataAccessDescriptor::operator=(ODataAccessDescriptor&& _rSource) noexcept
{ {
m_pImpl = std::move(_rSource.m_pImpl); m_pImpl = std::move(_rSource.m_pImpl);
return *this; return *this;

View File

@ -277,7 +277,7 @@ namespace drawinglayer
{ {
} }
SdrFormTextAttribute::SdrFormTextAttribute(SdrFormTextAttribute&& rCandidate) SdrFormTextAttribute::SdrFormTextAttribute(SdrFormTextAttribute&& rCandidate) noexcept
: mpSdrFormTextAttribute(std::move(rCandidate.mpSdrFormTextAttribute)) : mpSdrFormTextAttribute(std::move(rCandidate.mpSdrFormTextAttribute))
{ {
} }
@ -297,7 +297,7 @@ namespace drawinglayer
return *this; return *this;
} }
SdrFormTextAttribute& SdrFormTextAttribute::operator=(SdrFormTextAttribute&& rCandidate) SdrFormTextAttribute& SdrFormTextAttribute::operator=(SdrFormTextAttribute&& rCandidate) noexcept
{ {
mpSdrFormTextAttribute = std::move(rCandidate.mpSdrFormTextAttribute); mpSdrFormTextAttribute = std::move(rCandidate.mpSdrFormTextAttribute);
return *this; return *this;

View File

@ -108,7 +108,7 @@ namespace drawinglayer
return *this; return *this;
} }
SdrFormTextOutlineAttribute& SdrFormTextOutlineAttribute::operator=(SdrFormTextOutlineAttribute&& rCandidate) SdrFormTextOutlineAttribute& SdrFormTextOutlineAttribute::operator=(SdrFormTextOutlineAttribute&& rCandidate) noexcept
{ {
mpSdrFormTextOutlineAttribute = std::move(rCandidate.mpSdrFormTextOutlineAttribute); mpSdrFormTextOutlineAttribute = std::move(rCandidate.mpSdrFormTextOutlineAttribute);
return *this; return *this;

View File

@ -279,7 +279,7 @@ namespace drawinglayer
{ {
} }
SdrTextAttribute::SdrTextAttribute(SdrTextAttribute&& rCandidate) SdrTextAttribute::SdrTextAttribute(SdrTextAttribute&& rCandidate) noexcept
: mpSdrTextAttribute(std::move(rCandidate.mpSdrTextAttribute)) : mpSdrTextAttribute(std::move(rCandidate.mpSdrTextAttribute))
{ {
} }
@ -299,7 +299,7 @@ namespace drawinglayer
return *this; return *this;
} }
SdrTextAttribute& SdrTextAttribute::operator=(SdrTextAttribute&& rCandidate) SdrTextAttribute& SdrTextAttribute::operator=(SdrTextAttribute&& rCandidate) noexcept
{ {
mpSdrTextAttribute = std::move(rCandidate.mpSdrTextAttribute); mpSdrTextAttribute = std::move(rCandidate.mpSdrTextAttribute);
return *this; return *this;

View File

@ -320,7 +320,7 @@ Content::Content( const Content& rOther )
m_xImpl = rOther.m_xImpl; m_xImpl = rOther.m_xImpl;
} }
Content::Content( Content&& rOther ) Content::Content( Content&& rOther ) noexcept
{ {
m_xImpl = std::move(rOther.m_xImpl); m_xImpl = std::move(rOther.m_xImpl);
} }
@ -361,7 +361,7 @@ Content& Content::operator=( const Content& rOther )
return *this; return *this;
} }
Content& Content::operator=( Content&& rOther ) Content& Content::operator=( Content&& rOther ) noexcept
{ {
m_xImpl = std::move(rOther.m_xImpl); m_xImpl = std::move(rOther.m_xImpl);
return *this; return *this;

View File

@ -106,7 +106,7 @@ private:
public: public:
ImpGraphic(); ImpGraphic();
ImpGraphic( const ImpGraphic& rImpGraphic ); ImpGraphic( const ImpGraphic& rImpGraphic );
ImpGraphic( ImpGraphic&& rImpGraphic ); ImpGraphic( ImpGraphic&& rImpGraphic ) noexcept;
ImpGraphic( const GraphicExternalLink& rExternalLink); ImpGraphic( const GraphicExternalLink& rExternalLink);
ImpGraphic( const Bitmap& rBmp ); ImpGraphic( const Bitmap& rBmp );
ImpGraphic( const BitmapEx& rBmpEx ); ImpGraphic( const BitmapEx& rBmpEx );

View File

@ -91,7 +91,7 @@ public:
OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, void const * pData ); OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, void const * pData );
OpenGLTexture( int nX, int nY, int nWidth, int nHeight ); OpenGLTexture( int nX, int nY, int nWidth, int nHeight );
OpenGLTexture( const OpenGLTexture& rTexture ); OpenGLTexture( const OpenGLTexture& rTexture );
OpenGLTexture( OpenGLTexture&& rTexture ); OpenGLTexture( OpenGLTexture&& rTexture ) noexcept;
OpenGLTexture( const OpenGLTexture& rTexture, int nX, int nY, int nWidth, int nHeight ); OpenGLTexture( const OpenGLTexture& rTexture, int nX, int nY, int nWidth, int nHeight );
~OpenGLTexture(); ~OpenGLTexture();

View File

@ -307,7 +307,7 @@ OpenGLTexture::OpenGLTexture(const OpenGLTexture& rTexture)
mpImpl->IncreaseRefCount(mnSlotNumber); mpImpl->IncreaseRefCount(mnSlotNumber);
} }
OpenGLTexture::OpenGLTexture(OpenGLTexture&& rTexture) OpenGLTexture::OpenGLTexture(OpenGLTexture&& rTexture) noexcept
: maRect(rTexture.maRect) : maRect(rTexture.maRect)
, mpImpl(std::move(rTexture.mpImpl)) , mpImpl(std::move(rTexture.mpImpl))
, mnSlotNumber(rTexture.mnSlotNumber) , mnSlotNumber(rTexture.mnSlotNumber)

View File

@ -220,7 +220,7 @@ Bitmap& Bitmap::operator=( const Bitmap& rBitmap )
return *this; return *this;
} }
Bitmap& Bitmap::operator=( Bitmap&& rBitmap ) Bitmap& Bitmap::operator=( Bitmap&& rBitmap ) noexcept
{ {
maPrefSize = std::move(rBitmap.maPrefSize); maPrefSize = std::move(rBitmap.maPrefSize);
maPrefMapMode = std::move(rBitmap.maPrefMapMode); maPrefMapMode = std::move(rBitmap.maPrefMapMode);

View File

@ -191,7 +191,7 @@ Graphic::Graphic(const Graphic& rGraphic)
mxImpGraphic = rGraphic.mxImpGraphic; mxImpGraphic = rGraphic.mxImpGraphic;
} }
Graphic::Graphic(Graphic&& rGraphic) Graphic::Graphic(Graphic&& rGraphic) noexcept
: mxImpGraphic(std::move(rGraphic.mxImpGraphic)) : mxImpGraphic(std::move(rGraphic.mxImpGraphic))
{ {
} }
@ -275,7 +275,7 @@ Graphic& Graphic::operator=( const Graphic& rGraphic )
return *this; return *this;
} }
Graphic& Graphic::operator=(Graphic&& rGraphic) Graphic& Graphic::operator=(Graphic&& rGraphic) noexcept
{ {
mxImpGraphic = std::move(rGraphic.mxImpGraphic); mxImpGraphic = std::move(rGraphic.mxImpGraphic);
return *this; return *this;

View File

@ -211,7 +211,7 @@ ImpGraphic::ImpGraphic(const ImpGraphic& rImpGraphic)
} }
} }
ImpGraphic::ImpGraphic(ImpGraphic&& rImpGraphic) ImpGraphic::ImpGraphic(ImpGraphic&& rImpGraphic) noexcept
: maMetaFile(std::move(rImpGraphic.maMetaFile)) : maMetaFile(std::move(rImpGraphic.maMetaFile))
, maEx(std::move(rImpGraphic.maEx)) , maEx(std::move(rImpGraphic.maEx))
, maSwapInfo(std::move(rImpGraphic.maSwapInfo)) , maSwapInfo(std::move(rImpGraphic.maSwapInfo))

View File

@ -1141,7 +1141,7 @@ TransferableDataHelper::TransferableDataHelper(const TransferableDataHelper& rDa
{ {
} }
TransferableDataHelper::TransferableDataHelper(TransferableDataHelper&& rDataHelper) TransferableDataHelper::TransferableDataHelper(TransferableDataHelper&& rDataHelper) noexcept
: mxTransfer(std::move(rDataHelper.mxTransfer)) : mxTransfer(std::move(rDataHelper.mxTransfer))
, mxClipboard(std::move(rDataHelper.mxClipboard)) , mxClipboard(std::move(rDataHelper.mxClipboard))
, maFormats(std::move(rDataHelper.maFormats)) , maFormats(std::move(rDataHelper.maFormats))