summaryrefslogtreecommitdiff
path: root/UnoControls
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-10 11:01:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-10 17:39:51 +0100
commit630360529726f4bd627a7f02e7a0ee247d0e0f63 (patch)
tree552bb74201f4017d7801f517add068565ae92e20 /UnoControls
parentdd1050b182260a26a1d0ba6d0ef3a6fecc3f4e07 (diff)
UnoControls: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I6ad8bb98f967d7bfa062ae24d9ff35837620a77a
Diffstat (limited to 'UnoControls')
-rw-r--r--UnoControls/source/base/basecontrol.cxx25
1 files changed, 1 insertions, 24 deletions
diff --git a/UnoControls/source/base/basecontrol.cxx b/UnoControls/source/base/basecontrol.cxx
index 064785105504..c2ac982180a3 100644
--- a/UnoControls/source/base/basecontrol.cxx
+++ b/UnoControls/source/base/basecontrol.cxx
@@ -165,30 +165,7 @@ Sequence< Type > SAL_CALL BaseControl::getTypes() throw( RuntimeException, std::
Sequence< sal_Int8 > SAL_CALL BaseControl::getImplementationId() throw( RuntimeException, std::exception )
{
- // Create one Id for all instances of this class.
- // Use ethernet address to do this! (sal_True)
-
- // Optimize this method
- // We initialize a static variable only one time. And we don't must use a mutex at every call!
- // For the first call; pID is NULL - for the second call pID is different from NULL!
- static OImplementationId* pID = NULL ;
-
- if ( pID == NULL )
- {
- // Ready for multithreading; get global mutex for first call of this method only! see before
- MutexGuard aGuard( Mutex::getGlobalMutex() );
-
- // Control these pointer again ... it can be, that another instance will be faster then these!
- if ( pID == NULL )
- {
- // Create a new static ID ...
- static OImplementationId aID( false );
- // ... and set his address to static pointer!
- pID = &aID ;
- }
- }
-
- return pID->getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}