embeddedobj: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I977e4af1cd4a2c960aee0b7d1058041fd31608d5
This commit is contained in:
@@ -446,19 +446,7 @@ uno::Sequence< uno::Type > SAL_CALL OCommonEmbeddedObject::getTypes()
|
||||
uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getImplementationId()
|
||||
throw( uno::RuntimeException )
|
||||
{
|
||||
static ::cppu::OImplementationId* pID = NULL ;
|
||||
|
||||
if ( !pID )
|
||||
{
|
||||
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ) ;
|
||||
if ( !pID )
|
||||
{
|
||||
static ::cppu::OImplementationId aID( false ) ;
|
||||
pID = &aID ;
|
||||
}
|
||||
}
|
||||
|
||||
return pID->getImplementationId() ;
|
||||
return css::uno::Sequence<sal_Int8>();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user