diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-10 11:13:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-10 17:39:52 +0100 |
commit | 90dcd2ac130c1e8666acfe1ed4ac7547fc4d96b2 (patch) | |
tree | 907b9abf1656fa39df00d1e1b96566102b00914f /basic | |
parent | d2aba93a9792a35602d3cc72bda5146018f3a6d5 (diff) |
basic: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I7f0d75c5eaa62f012cb2ae19c5107c09cbc6936a
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 4 | ||||
-rw-r--r-- | basic/source/uno/namecont.cxx | 14 |
2 files changed, 2 insertions, 16 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index ce31d501c647..910f3233bbf6 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -109,9 +109,7 @@ public: virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (RuntimeException, std::exception) { - if( !m_xAggregateTypeProv.is() ) - throw RuntimeException(); - return m_xAggregateTypeProv->getImplementationId(); + return css::uno::Sequence<sal_Int8>(); } virtual Reference< XIntrospectionAccess > SAL_CALL getIntrospection( ) throw (RuntimeException, std::exception); diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 7590e18b55ff..cdc3c5214a4a 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -3217,19 +3217,7 @@ Sequence< Type > SfxLibrary::getTypes() Sequence< sal_Int8 > SfxLibrary::getImplementationId() throw( RuntimeException, std::exception ) { - static OImplementationId * s_pId_NameContainer = 0; - { - if( !s_pId_NameContainer ) - { - MutexGuard aGuard( Mutex::getGlobalMutex() ); - if( !s_pId_NameContainer ) - { - static OImplementationId s_aId_NameContainer; - s_pId_NameContainer = &s_aId_NameContainer; - } - } - return s_pId_NameContainer->getImplementationId(); - } + return css::uno::Sequence<sal_Int8>(); } // Methods XContainer |