From 78a7f969b476ac2a32be8eca79296ff6c5abe540 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 31 Mar 2015 13:14:06 +0200 Subject: Reduce to static_cast any reinterpret_cast from void pointers Change-Id: I0e12e63846f7d06b4c2a4c00614c65b46aa64238 --- extensions/source/plugin/base/service.cxx | 2 +- extensions/source/update/check/download.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/source/plugin/base/service.cxx b/extensions/source/plugin/base/service.cxx index 310ddafb9558..e4b6bfc9dc9e 100644 --- a/extensions/source/plugin/base/service.cxx +++ b/extensions/source/plugin/base/service.cxx @@ -67,7 +67,7 @@ extern "C" { if( pXUnoSMgr ) { Reference< ::com::sun::star::lang::XMultiServiceFactory > xMgr( - reinterpret_cast< ::com::sun::star::lang::XMultiServiceFactory* >( pXUnoSMgr ) + static_cast< ::com::sun::star::lang::XMultiServiceFactory* >( pXUnoSMgr ) ); Reference< ::com::sun::star::lang::XSingleServiceFactory > xFactory; if( aImplName.equals( XPluginManager_Impl::getImplementationName_Static() ) ) diff --git a/extensions/source/update/check/download.cxx b/extensions/source/update/check/download.cxx index 092f141ec861..9847948d8266 100644 --- a/extensions/source/update/check/download.cxx +++ b/extensions/source/update/check/download.cxx @@ -131,7 +131,7 @@ getInt32Value(const uno::Reference< container::XNameAccess >& xNameAccess, static size_t write_function( void *ptr, size_t size, size_t nmemb, void *stream ) { - OutData *out = reinterpret_cast < OutData * > (stream); + OutData *out = static_cast < OutData * > (stream); if( NULL == out->FileHandle ) openFile(*out); @@ -152,7 +152,7 @@ progress_callback( void *clientp, double dltotal, double dlnow, double ultotal, (void) ultotal; (void) ulnow; - OutData *out = reinterpret_cast < OutData * > (clientp); + OutData *out = static_cast < OutData * > (clientp); assert(out); -- cgit