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