summaryrefslogtreecommitdiff
path: root/ucbhelper/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-10 16:37:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-10 17:40:00 +0100
commitc7d2ed40de437010544ae9d0a40882732a0d0adb (patch)
tree9889bf012234c1f4cceb32cf68ab178684117439 /ucbhelper/source
parenta3858b40f376465ed08874ad1697f1178da6f633 (diff)
ucbhelper: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I7797ba7fdc47a5f8d2453e839d8644bf125652bd
Diffstat (limited to 'ucbhelper/source')
-rw-r--r--ucbhelper/source/provider/contentidentifier.cxx12
-rw-r--r--ucbhelper/source/provider/interactionrequest.cxx96
2 files changed, 9 insertions, 99 deletions
diff --git a/ucbhelper/source/provider/contentidentifier.cxx b/ucbhelper/source/provider/contentidentifier.cxx
index 387e04deec20..6d389af0d195 100644
--- a/ucbhelper/source/provider/contentidentifier.cxx
+++ b/ucbhelper/source/provider/contentidentifier.cxx
@@ -136,17 +136,7 @@ Sequence< sal_Int8 > SAL_CALL
ContentIdentifier::getImplementationId()
throw( RuntimeException, std::exception )
{
- static cppu::OImplementationId* pId = NULL;
- if ( !pId )
- {
- osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
- if ( !pId )
- {
- static cppu::OImplementationId id( false );
- pId = &id;
- }
- }
- return (*pId).getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}
diff --git a/ucbhelper/source/provider/interactionrequest.cxx b/ucbhelper/source/provider/interactionrequest.cxx
index 3521968a1ea4..5e51bb246adb 100644
--- a/ucbhelper/source/provider/interactionrequest.cxx
+++ b/ucbhelper/source/provider/interactionrequest.cxx
@@ -147,17 +147,7 @@ InteractionRequest::queryInterface( const uno::Type & rType )
uno::Sequence< sal_Int8 > SAL_CALL InteractionRequest::getImplementationId()
throw( uno::RuntimeException, std::exception )
{
- static cppu::OImplementationId* pId = NULL;
- if ( !pId )
- {
- osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
- if ( !pId )
- {
- static cppu::OImplementationId id( false );
- pId = &id;
- }
- }
- return (*pId).getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}
@@ -299,17 +289,7 @@ InteractionAbort::queryInterface( const uno::Type & rType )
uno::Sequence< sal_Int8 > SAL_CALL InteractionAbort::getImplementationId()
throw( uno::RuntimeException, std::exception )
{
- static cppu::OImplementationId* pId = NULL;
- if ( !pId )
- {
- osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
- if ( !pId )
- {
- static cppu::OImplementationId id( false );
- pId = &id;
- }
- }
- return (*pId).getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}
@@ -401,17 +381,7 @@ InteractionRetry::queryInterface( const uno::Type & rType )
uno::Sequence< sal_Int8 > SAL_CALL InteractionRetry::getImplementationId()
throw( uno::RuntimeException, std::exception )
{
- static cppu::OImplementationId* pId = NULL;
- if ( !pId )
- {
- osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
- if ( !pId )
- {
- static cppu::OImplementationId id( false );
- pId = &id;
- }
- }
- return (*pId).getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}
@@ -503,17 +473,7 @@ InteractionApprove::queryInterface( const uno::Type & rType )
uno::Sequence< sal_Int8 > SAL_CALL InteractionApprove::getImplementationId()
throw( uno::RuntimeException, std::exception )
{
- static cppu::OImplementationId* pId = NULL;
- if ( !pId )
- {
- osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
- if ( !pId )
- {
- static cppu::OImplementationId id( false );
- pId = &id;
- }
- }
- return (*pId).getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}
@@ -605,17 +565,7 @@ InteractionDisapprove::queryInterface( const uno::Type & rType )
uno::Sequence< sal_Int8 > SAL_CALL InteractionDisapprove::getImplementationId()
throw( uno::RuntimeException, std::exception )
{
- static cppu::OImplementationId* pId = NULL;
- if ( !pId )
- {
- osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
- if ( !pId )
- {
- static cppu::OImplementationId id( false );
- pId = &id;
- }
- }
- return (*pId).getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}
@@ -709,17 +659,7 @@ uno::Sequence< sal_Int8 > SAL_CALL
InteractionSupplyAuthentication::getImplementationId()
throw( uno::RuntimeException, std::exception )
{
- static cppu::OImplementationId* pId = NULL;
- if ( !pId )
- {
- osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
- if ( !pId )
- {
- static cppu::OImplementationId id( false );
- pId = &id;
- }
- }
- return (*pId).getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}
@@ -973,17 +913,7 @@ InteractionSupplyName::queryInterface( const uno::Type & rType )
uno::Sequence< sal_Int8 > SAL_CALL InteractionSupplyName::getImplementationId()
throw( uno::RuntimeException, std::exception )
{
- static cppu::OImplementationId* pId = NULL;
- if ( !pId )
- {
- osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
- if ( !pId )
- {
- static cppu::OImplementationId id( false );
- pId = &id;
- }
- }
- return (*pId).getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}
@@ -1090,17 +1020,7 @@ uno::Sequence< sal_Int8 > SAL_CALL
InteractionReplaceExistingData::getImplementationId()
throw( uno::RuntimeException, std::exception )
{
- static cppu::OImplementationId* pId = NULL;
- if ( !pId )
- {
- osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
- if ( !pId )
- {
- static cppu::OImplementationId id( false );
- pId = &id;
- }
- }
- return (*pId).getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}