diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 21:14:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 08:22:32 +0100 |
commit | 6122207e407d8774b3a445eaa94a27cb0801e86d (patch) | |
tree | 0f3d595991eb615e7d808eae4e7ead4eebf907f9 /avmedia | |
parent | 01fe7b72389bb2f8de45d8319728807d8048b1d3 (diff) |
bool improvements
Change-Id: Ib5bff97e764cf36bedc39154cc8aca1f223b0f22
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/framework/soundhandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/avmedia/source/framework/soundhandler.cxx b/avmedia/source/framework/soundhandler.cxx index d6e2c929d64d..f81df491d196 100644 --- a/avmedia/source/framework/soundhandler.cxx +++ b/avmedia/source/framework/soundhandler.cxx @@ -60,7 +60,7 @@ css::uno::Any SAL_CALL SoundHandler::queryInterface( const css::uno::Type& aType static_cast< css::frame::XDispatch* >(this), static_cast< css::document::XExtendedFilterDetection* >(this))); /* If searched interface not supported by this class ... */ - if ( aReturn.hasValue() == sal_False ) + if ( !aReturn.hasValue() ) { /* ... ask baseclass for interfaces! */ aReturn = OWeakObject::queryInterface( aType ); @@ -431,7 +431,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL avmedia_component_getFactory(cons if ( avmedia::SoundHandler::impl_getStaticImplementationName().equals( OUString::createFromAscii( pImplementationName ) ) ) xFactory = avmedia::SoundHandler::impl_createFactory( xServiceManager ); - if ( xFactory.is() == sal_True ) + if ( xFactory.is() ) { xFactory->acquire(); pReturn = xFactory.get(); |