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()
|
uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getImplementationId()
|
||||||
throw( uno::RuntimeException )
|
throw( uno::RuntimeException )
|
||||||
{
|
{
|
||||||
static ::cppu::OImplementationId* pID = NULL ;
|
return css::uno::Sequence<sal_Int8>();
|
||||||
|
|
||||||
if ( !pID )
|
|
||||||
{
|
|
||||||
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ) ;
|
|
||||||
if ( !pID )
|
|
||||||
{
|
|
||||||
static ::cppu::OImplementationId aID( false ) ;
|
|
||||||
pID = &aID ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return pID->getImplementationId() ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user