Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: If5714853a977068c2a75891c77c26d9c06989548
This commit is contained in:
@@ -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 ) ) );
|
||||
}
|
||||
|
||||
|
@@ -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 ) ) );
|
||||
}
|
||||
|
@@ -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 ) ) );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user