extensions: simplify deprecated XTypeProvider.getImplementationId

Change-Id: I234d36bc7ef9e8e27087067f6e43d7e522e52d4d
This commit is contained in:
Stephan Bergmann
2014-03-10 14:31:21 +01:00
parent c63ba20f2a
commit c7f1ce594c
6 changed files with 6 additions and 30 deletions

View File

@@ -83,17 +83,7 @@ namespace abp
Sequence<sal_Int8> SAL_CALL OABSPilotUno::getImplementationId( ) throw(RuntimeException, std::exception)
{
static ::cppu::OImplementationId* s_pId;
if ( !s_pId )
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
if ( !s_pId )
{
static ::cppu::OImplementationId s_aId;
s_pId = &s_aId;
}
}
return s_pId->getImplementationId();
return css::uno::Sequence<sal_Int8>();
}

View File

@@ -32,8 +32,7 @@ OUnoAutoPilot<TYPE, SERVICEINFO>::OUnoAutoPilot(const ::com::sun::star::uno::Ref
template <class TYPE, class SERVICEINFO>
::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationId( ) throw(::com::sun::star::uno::RuntimeException, std::exception)
{
static ::cppu::OImplementationId aId;
return aId.getImplementationId();
return css::uno::Sequence<sal_Int8>();
}

View File

@@ -653,17 +653,7 @@ Sequence< Type > SAL_CALL OleServer_Impl::getTypes( ) throw(RuntimeException)
}
Sequence< sal_Int8 > SAL_CALL OleServer_Impl::getImplementationId() throw(RuntimeException)
{
static OImplementationId *pId = 0;
if( ! pId )
{
MutexGuard guard( Mutex::getGlobalMutex() );
if( ! pId )
{
static OImplementationId id( false );
pId = &id;
}
}
return (*pId).getImplementationId();
return css::uno::Sequence<sal_Int8>();
}

View File

@@ -45,8 +45,7 @@ namespace pcr
Sequence<sal_Int8> SAL_CALL MasterDetailLinkDialog::getImplementationId( ) throw(RuntimeException, std::exception)
{
static ::cppu::OImplementationId aId;
return aId.getImplementationId();
return css::uno::Sequence<sal_Int8>();
}

View File

@@ -67,8 +67,7 @@ namespace pcr
Sequence<sal_Int8> SAL_CALL OControlFontDialog::getImplementationId( ) throw(RuntimeException, std::exception)
{
static ::cppu::OImplementationId aId;
return aId.getImplementationId();
return css::uno::Sequence<sal_Int8>();
}

View File

@@ -71,8 +71,7 @@ namespace pcr
Sequence<sal_Int8> SAL_CALL OTabOrderDialog::getImplementationId( ) throw(RuntimeException, std::exception)
{
static ::cppu::OImplementationId aId;
return aId.getImplementationId();
return css::uno::Sequence<sal_Int8>();
}