diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-25 15:04:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-29 09:23:46 +0200 |
commit | 8ae8e5d12eea6c3416674b4ce83a29fa3e6f99b4 (patch) | |
tree | c3adf8dd6815116fe1b8ca55cda999edaa3872b8 | |
parent | 0157009f2293a255e2de682832ef9074924dd4b5 (diff) |
cid#1371171 Missing move assignment operator
Change-Id: I3150428f130823cdb1584e30c54f5591896214cf
-rw-r--r-- | include/tools/globname.hxx | 5 | ||||
-rw-r--r-- | tools/source/ref/globname.cxx | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/tools/globname.hxx b/include/tools/globname.hxx index 42928a8ce112..76bcef149640 100644 --- a/include/tools/globname.hxx +++ b/include/tools/globname.hxx @@ -62,6 +62,10 @@ public: pImp( rObj.pImp ) { } + SvGlobalName( SvGlobalName && rObj ) : + pImp( std::move(rObj.pImp) ) + { + } SvGlobalName( sal_uInt32 n1, sal_uInt16 n2, sal_uInt16 n3, sal_uInt8 b8, sal_uInt8 b9, sal_uInt8 b10, sal_uInt8 b11, @@ -73,6 +77,7 @@ public: SvGlobalName( const SvGUID & rId ); SvGlobalName & operator = ( const SvGlobalName & rObj ); + SvGlobalName & operator = ( SvGlobalName && rObj ); ~SvGlobalName(); TOOLS_DLLPUBLIC friend SvStream & operator >> ( SvStream &, SvGlobalName & ); diff --git a/tools/source/ref/globname.cxx b/tools/source/ref/globname.cxx index f92a9f217e8e..67bbf7e153be 100644 --- a/tools/source/ref/globname.cxx +++ b/tools/source/ref/globname.cxx @@ -106,6 +106,12 @@ SvGlobalName & SvGlobalName::operator = ( const SvGlobalName & rObj ) return *this; } +SvGlobalName & SvGlobalName::operator = ( SvGlobalName && rObj ) +{ + pImp = std::move(rObj.pImp); + return *this; +} + SvStream& WriteSvGlobalName( SvStream& rOStr, const SvGlobalName & rObj ) { rOStr.WriteUInt32( rObj.pImp->szData.Data1 ); |