include/com/sun/star/uno/Type.h | 4 ---- include/com/sun/star/uno/Type.hxx | 10 ---------- 2 files changed, 14 deletions(-)
New commits: commit 350fe112c20106e9a53fec4c2f3c0f7fdc496e3f Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Jun 24 10:00:47 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Jun 24 20:49:17 2021 +0200 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.gran...@collabora.co.uk> 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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits