diff options
Diffstat (limited to 'avmedia/source/framework/soundhandler.cxx')
-rw-r--r-- | avmedia/source/framework/soundhandler.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/avmedia/source/framework/soundhandler.cxx b/avmedia/source/framework/soundhandler.cxx index d292bd723647..e727f2ffe0e1 100644 --- a/avmedia/source/framework/soundhandler.cxx +++ b/avmedia/source/framework/soundhandler.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -27,7 +27,7 @@ ************************************************************************/ //_________________________________________________________________________________________________________________ -// my own includes +// my own includes //_________________________________________________________________________________________________________________ #include "soundhandler.hxx" @@ -35,13 +35,13 @@ #include <comphelper/mediadescriptor.hxx> //_________________________________________________________________________________________________________________ -// interface includes +// interface includes //_________________________________________________________________________________________________________________ #include <com/sun/star/io/XInputStream.hpp> #include <com/sun/star/frame/DispatchResultState.hpp> //_________________________________________________________________________________________________________________ -// includes of other projects +// includes of other projects //_________________________________________________________________________________________________________________ #include <comphelper/sequenceashashmap.hxx> #include <rtl/ustrbuf.hxx> @@ -50,21 +50,21 @@ #include <cppuhelper/factory.hxx> //_________________________________________________________________________________________________________________ -// namespace +// namespace //_________________________________________________________________________________________________________________ namespace avmedia{ //_________________________________________________________________________________________________________________ -// non exported const +// non exported const //_________________________________________________________________________________________________________________ //_________________________________________________________________________________________________________________ -// non exported definitions +// non exported definitions //_________________________________________________________________________________________________________________ //_________________________________________________________________________________________________________________ -// declarations +// declarations //_________________________________________________________________________________________________________________ //***************************************************************************************************************** @@ -87,7 +87,7 @@ css::uno::Any SAL_CALL SoundHandler::queryInterface( const css::uno::Type& aType { /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ /* Ask for my own supported interfaces ...*/ - css::uno::Any aReturn( ::cppu::queryInterface( aType, + css::uno::Any aReturn( ::cppu::queryInterface( aType, static_cast< css::lang::XTypeProvider* >(this), static_cast< css::lang::XServiceInfo* >(this), static_cast< css::frame::XNotifyingDispatch* >(this), @@ -128,7 +128,7 @@ css::uno::Sequence< sal_Int8 > SAL_CALL SoundHandler::getImplementationId() thro } css::uno::Sequence< css::uno::Type > SAL_CALL SoundHandler::getTypes() throw( css::uno::RuntimeException ) -{ +{ /* Optimize this method ! */ /* We initialize a static variable only one time. */ /* And we don't must use a mutex at every call! */ @@ -182,8 +182,8 @@ sal_Bool SAL_CALL SoundHandler::supportsService( const ::rtl::OUString& sService /* Get names of all supported servicenames. */ css::uno::Sequence< ::rtl::OUString > seqServiceNames = getSupportedServiceNames(); const ::rtl::OUString* pArray = seqServiceNames.getConstArray(); - sal_Int32 nCounter = 0; - sal_Int32 nLength = seqServiceNames.getLength(); + sal_Int32 nCounter = 0; + sal_Int32 nLength = seqServiceNames.getLength(); /* Search for right name in list. */ while ( ( nCounter < nLength ) && @@ -270,11 +270,11 @@ void SAL_CALL SoundHandler::impl_initService() @threadsafe yes *//*-*************************************************************************************************************/ SoundHandler::SoundHandler( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ) - // Init baseclasses first + // Init baseclasses first : ThreadHelpBase ( ) , ::cppu::OWeakObject ( ) // Init member - , m_bError ( false ) + , m_bError ( false ) , m_xFactory ( xFactory ) { m_aUpdateTimer.SetTimeoutHdl(LINK(this, SoundHandler, implts_PlayerNotify)); @@ -332,7 +332,7 @@ void SAL_CALL SoundHandler::dispatchWithNotification(const css::util::URL& // SAFE { const ::osl::MutexGuard aLock( m_aLock ); - { + { //close streams otherwise on windows we can't reopen the file in the //media player when we pass the url to directx as it'll already be open ::comphelper::MediaDescriptor aDescriptor(lDescriptor); |