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

svl: simplify deprecated XTypeProvider.getImplementationId

Change-Id: Ib1e59f755e0472efe0448d1976cdfba13c64ff18
üst 5bce6e34
...@@ -342,21 +342,7 @@ uno::Sequence< uno::Type > SAL_CALL FSStorage::getTypes() ...@@ -342,21 +342,7 @@ uno::Sequence< uno::Type > SAL_CALL FSStorage::getTypes()
uno::Sequence< sal_Int8 > SAL_CALL FSStorage::getImplementationId() uno::Sequence< sal_Int8 > SAL_CALL FSStorage::getImplementationId()
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
static ::cppu::OImplementationId* pID = NULL ; return css::uno::Sequence<sal_Int8>();
if ( pID == NULL )
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ) ;
if ( pID == NULL )
{
static ::cppu::OImplementationId aID( false ) ;
pID = &aID ;
}
}
return pID->getImplementationId() ;
} }
// XStorage // XStorage
......
...@@ -185,20 +185,7 @@ uno::Sequence< uno::Type > SAL_CALL OFSStreamContainer::getTypes() ...@@ -185,20 +185,7 @@ uno::Sequence< uno::Type > SAL_CALL OFSStreamContainer::getTypes()
uno::Sequence< sal_Int8 > SAL_CALL OFSStreamContainer::getImplementationId() uno::Sequence< sal_Int8 > SAL_CALL OFSStreamContainer::getImplementationId()
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
static ::cppu::OImplementationId* pID = NULL ; return css::uno::Sequence<sal_Int8>();
if ( pID == NULL )
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ) ;
if ( pID == NULL )
{
static ::cppu::OImplementationId aID( false ) ;
pID = &aID ;
}
}
return pID->getImplementationId() ;
} }
// XStream // XStream
......
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