diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-24 10:00:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-24 20:49:17 +0200 |
commit | 350fe112c20106e9a53fec4c2f3c0f7fdc496e3f (patch) | |
tree | 35252465f9d649cd66f685b86da87130b1e3a8af /include/com/sun/star | |
parent | 1bc454a2c0cb0dd69512d69ddd2123a44814197e (diff) |
remove uno::Type move constructor
not necessary for the optimisation I was going for, and actually less
efficient than just using the copy constructor
Change-Id: I0f2019a0bf032283fb6c8d5d834603ea7a5ce3c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117762
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/com/sun/star')
-rw-r--r-- | include/com/sun/star/uno/Type.h | 4 | ||||
-rw-r--r-- | include/com/sun/star/uno/Type.hxx | 10 |
2 files changed, 0 insertions, 14 deletions
diff --git a/include/com/sun/star/uno/Type.h b/include/com/sun/star/uno/Type.h index 364d9eb5959e..5dc1b41e0bc2 100644 --- a/include/com/sun/star/uno/Type.h +++ b/include/com/sun/star/uno/Type.h @@ -119,10 +119,6 @@ public: */ inline Type( const Type & rType ); -#if defined LIBO_INTERNAL_ONLY - inline Type( Type && ); -#endif - /** Destructor: Releases acquired C type description reference. */ ~Type() diff --git a/include/com/sun/star/uno/Type.hxx b/include/com/sun/star/uno/Type.hxx index 5c95adc3bd85..f62d0a17b63a 100644 --- a/include/com/sun/star/uno/Type.hxx +++ b/include/com/sun/star/uno/Type.hxx @@ -82,16 +82,6 @@ inline Type::Type( const Type & rType ) ::typelib_typedescriptionreference_acquire( _pType ); } -#if defined LIBO_INTERNAL_ONLY -inline Type::Type( Type && rType ) - : _pType( rType._pType ) -{ - rType._pType = reinterpret_cast< const ::com::sun::star::uno::Type * >( - ::typelib_static_type_getByTypeClass( typelib_TypeClass_VOID ) )->getTypeLibType(); - ::typelib_typedescriptionreference_acquire( rType._pType ); -} -#endif - inline ::rtl::OUString Type::getTypeName() const { return ::rtl::OUString( _pType->pTypeName ); |