diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-10 12:16:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-10 17:39:53 +0100 |
commit | 023c00b7c4bcca3c581cee293150e9389e5a1f7b (patch) | |
tree | 005b7c60e265692fbb028f8783e6db1efbb9a18a /cppuhelper/source/implbase_ex.cxx | |
parent | connectivity: simplify deprecated XTypeProvider.getImplementationId (diff) | |
download | core-023c00b7c4bcca3c581cee293150e9389e5a1f7b.tar.gz core-023c00b7c4bcca3c581cee293150e9389e5a1f7b.zip |
cppuhelper: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I1e355c0ef9548d505de996304837d3d0910bd9b8
Diffstat (limited to 'cppuhelper/source/implbase_ex.cxx')
-rw-r--r-- | cppuhelper/source/implbase_ex.cxx | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/cppuhelper/source/implbase_ex.cxx b/cppuhelper/source/implbase_ex.cxx index 97dbaa227723..0dba5561ad6f 100644 --- a/cppuhelper/source/implbase_ex.cxx +++ b/cppuhelper/source/implbase_ex.cxx @@ -253,25 +253,10 @@ Any SAL_CALL ImplHelper_queryNoXInterface( } } -Sequence< sal_Int8 > SAL_CALL ImplHelper_getImplementationId( class_data * cd ) - SAL_THROW( (RuntimeException) ) +css::uno::Sequence<sal_Int8> ImplHelper_getImplementationId( + SAL_UNUSED_PARAMETER class_data *) SAL_THROW((css::uno::RuntimeException)) { - if (! cd->m_createdId) - { - sal_uInt8 * id = (sal_uInt8 *)alloca( 16 ); - ::rtl_createUuid( (sal_uInt8 *)id, 0, sal_True ); - - MutexGuard guard( getImplHelperInitMutex() ); - if (! cd->m_createdId) - { - memcpy( cd->m_id, id, 16 ); - cd->m_createdId = sal_True; - } - } - - sal_Sequence * seq = 0; - ::rtl_byte_sequence_constructFromArray( &seq, cd->m_id, 16 ); - return Sequence< sal_Int8 >( seq, SAL_NO_ACQUIRE ); + return css::uno::Sequence<sal_Int8>(); } Sequence< Type > SAL_CALL ImplHelper_getTypes( |