Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: If5714853a977068c2a75891c77c26d9c06989548
This commit is contained in:
Stephan Bergmann
2015-03-31 13:11:57 +02:00
parent 5f98904df8
commit a0737fb591
3 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL avmediagst_component_getFactory(
{
const OUString aServiceName( SERVICE_NAME );
xFactory = uno::Reference< lang::XSingleServiceFactory >( ::cppu::createSingleFactory(
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
IMPL_NAME, create_MediaPlayer, uno::Sequence< OUString >( &aServiceName, 1 ) ) );
}

View File

@@ -30,7 +30,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL avmediaogl_component_getFactory(
const OUString aServiceName( "com.sun.star.media.Manager_OpenGL" );
xFactory = uno::Reference< lang::XSingleServiceFactory >( ::cppu::createSingleFactory(
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
OUString("com.sun.star.comp.avmedia.Manager_OpenGL" ),
create_MediaPlayer, uno::Sequence< OUString >( &aServiceName, 1 ) ) );
}

View File

@@ -57,7 +57,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL avmediavlc_component_getFactory(
{
const OUString aServiceName( SERVICE_NAME );
xFactory = uno::Reference< lang::XSingleServiceFactory >( ::cppu::createSingleFactory(
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
IMPL_NAME, create_MediaPlayer, uno::Sequence< OUString >( &aServiceName, 1 ) ) );
}