summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-10 11:05:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-10 17:39:52 +0100
commit2812c31a447dd148d7606da241f832bba5a4434c (patch)
tree886b118895582925453b641edac0fcf0cc0bed1a /avmedia
parent557c0893f2f44340d24de48cbe793997c4c5443c (diff)
avmedia: simplify deprecated XTypeProvider.getImplementationId
Change-Id: Ic9807c81b77a255c0e81b2ad6474a52e9768fc93
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/framework/soundhandler.cxx21
1 files changed, 1 insertions, 20 deletions
diff --git a/avmedia/source/framework/soundhandler.cxx b/avmedia/source/framework/soundhandler.cxx
index c6f82097e434..5259de535559 100644
--- a/avmedia/source/framework/soundhandler.cxx
+++ b/avmedia/source/framework/soundhandler.cxx
@@ -71,26 +71,7 @@ css::uno::Any SAL_CALL SoundHandler::queryInterface( const css::uno::Type& aType
css::uno::Sequence< sal_Int8 > SAL_CALL SoundHandler::getImplementationId() throw( css::uno::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 ::cppu::OImplementationId* pID = NULL ;
- if ( pID == NULL )
- {
- /* Ready for multithreading; get global mutex for first call of this method only! see before */
- ::osl::MutexGuard aGuard( ::osl::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 ::cppu::OImplementationId aID( false );
- /* ... and set his address to static pointer! */
- pID = &aID ;
- }
- }
- return pID->getImplementationId();
+ return css::uno::Sequence<sal_Int8>();
}
css::uno::Sequence< css::uno::Type > SAL_CALL SoundHandler::getTypes() throw( css::uno::RuntimeException, std::exception )