diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:13:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:13:34 +0200 |
commit | eb1b5b8b0b3936a0f6cba8978c4693d6f67b5f89 (patch) | |
tree | 2c3d098bd5a23c9fb3696a2933f78183dbdf5187 /desktop | |
parent | f42825fa8af2a2e0760ea6097fcc13ea889d087a (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I128d5b429a8f649f9236b2e007a90c24cac5b142
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx | 2 | ||||
-rw-r--r-- | desktop/source/offacc/acceptor.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx index 7f7d38a90122..203c061ff315 100644 --- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx +++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx @@ -807,7 +807,7 @@ void ExtensionCmdQueue::Thread::execute() dpExc.Cause.getValueTypeClass() == uno::TypeClass_EXCEPTION) { // notify error cause only: - msg = reinterpret_cast< uno::Exception const * >( dpExc.Cause.getValue() )->Message; + msg = static_cast< uno::Exception const * >( dpExc.Cause.getValue() )->Message; } if (msg.isEmpty()) // fallback for debugging purposes msg = ::comphelper::anyToString(exc); diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx index f533be2882c2..f60eacc35f02 100644 --- a/desktop/source/offacc/acceptor.cxx +++ b/desktop/source/offacc/acceptor.cxx @@ -274,7 +274,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL offacc_component_getFactory(char const *pIm // Define variables which are used in following macros. Reference< XSingleServiceFactory > xFactory; Reference< XMultiServiceFactory > xServiceManager( - reinterpret_cast< XMultiServiceFactory* >(pServiceManager)); + static_cast< XMultiServiceFactory* >(pServiceManager)); if (desktop::Acceptor::impl_getImplementationName().equalsAscii( pImplementationName ) ) { |