summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-31 13:14:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-31 13:14:06 +0200
commit78a7f969b476ac2a32be8eca79296ff6c5abe540 (patch)
tree0cd5a7c2bab63dbbcf3529388c5d029946d913fc /extensions
parent86fcd8624efcf056bfccc625afa34e14aec05902 (diff)
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I0e12e63846f7d06b4c2a4c00614c65b46aa64238
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/plugin/base/service.cxx2
-rw-r--r--extensions/source/update/check/download.cxx4
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);