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:
parent
61ed17cafc
commit
63dfd069b3
@ -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);
|
||||
|
@ -35,7 +35,7 @@ class ViewElementListProvider final
|
||||
{
|
||||
public:
|
||||
ViewElementListProvider( DrawModelWrapper* pDrawModelWrapper );
|
||||
ViewElementListProvider( ViewElementListProvider&& );
|
||||
ViewElementListProvider(ViewElementListProvider&&) noexcept;
|
||||
~ViewElementListProvider();
|
||||
|
||||
XColorListRef GetColorTable() const;
|
||||
|
@ -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) )
|
||||
{
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -809,7 +809,7 @@ ONDXPagePtr::ONDXPagePtr()
|
||||
{
|
||||
}
|
||||
|
||||
ONDXPagePtr::ONDXPagePtr(ONDXPagePtr&& rRef)
|
||||
ONDXPagePtr::ONDXPagePtr(ONDXPagePtr&& rRef) noexcept
|
||||
{
|
||||
mpPage = rRef.mpPage;
|
||||
rRef.mpPage = nullptr;
|
||||
|
@ -92,7 +92,7 @@ namespace connectivity
|
||||
|
||||
public:
|
||||
ONDXPagePtr();
|
||||
ONDXPagePtr(ONDXPagePtr&& rObj);
|
||||
ONDXPagePtr(ONDXPagePtr&& rObj) noexcept;
|
||||
ONDXPagePtr(ONDXPagePtr const & rRef);
|
||||
ONDXPagePtr(ONDXPage* pRefPage);
|
||||
~ONDXPagePtr();
|
||||
|
@ -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))
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 )
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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(
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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); }
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -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(); }
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 );
|
||||
|
@ -78,7 +78,7 @@ public:
|
||||
bool bOutputEnabled );
|
||||
|
||||
public:
|
||||
GroupScope( GroupScope&& r );
|
||||
GroupScope(GroupScope&& r) noexcept;
|
||||
~GroupScope();
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
|
@ -163,7 +163,7 @@ class TableColumnBlockPositionSet
|
||||
|
||||
public:
|
||||
TableColumnBlockPositionSet( ScDocument& rDoc, SCTAB nTab );
|
||||
TableColumnBlockPositionSet( TableColumnBlockPositionSet&& rOther );
|
||||
TableColumnBlockPositionSet(TableColumnBlockPositionSet&& rOther) noexcept;
|
||||
~TableColumnBlockPositionSet();
|
||||
|
||||
ColumnBlockPosition* getBlockPosition( SCCOL nCol );
|
||||
|
@ -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();
|
||||
|
@ -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,
|
||||
|
@ -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) )
|
||||
{
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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() {}
|
||||
|
@ -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;
|
||||
|
@ -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() {}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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) )
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 );
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user