Kaydet (Commit) 90dcd2ac authored tarafından Stephan Bergmann's avatar Stephan Bergmann

basic: simplify deprecated XTypeProvider.getImplementationId

Change-Id: I7f0d75c5eaa62f012cb2ae19c5107c09cbc6936a
üst d2aba93a
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment