diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:24:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:24:55 +0200 |
commit | d5dde729086c680c99e660220d7c73a6c3771ae4 (patch) | |
tree | 77d9d9b76c4db62254aeaf959f4d3743840f5d83 /embeddedobj/source/general/intercept.cxx | |
parent | cec7d0a908292d065e239024dee06c82ee16809b (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Ie55f464ef2eca344d3c1292713ded2710c47cc53
Diffstat (limited to 'embeddedobj/source/general/intercept.cxx')
-rw-r--r-- | embeddedobj/source/general/intercept.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/embeddedobj/source/general/intercept.cxx b/embeddedobj/source/general/intercept.cxx index ce0551d63e65..710caf93bd4d 100644 --- a/embeddedobj/source/general/intercept.cxx +++ b/embeddedobj/source/general/intercept.cxx @@ -250,17 +250,17 @@ Interceptor::queryDispatch( { osl::MutexGuard aGuard(m_aMutex); if(URL.Complete == m_aInterceptedURL[0]) - return (frame::XDispatch*)this; + return static_cast<frame::XDispatch*>(this); else if(URL.Complete == m_aInterceptedURL[1]) - return (frame::XDispatch*)0 ; + return nullptr ; else if(URL.Complete == m_aInterceptedURL[2]) - return (frame::XDispatch*)this; + return static_cast<frame::XDispatch*>(this); else if(URL.Complete == m_aInterceptedURL[3]) - return (frame::XDispatch*)this; + return static_cast<frame::XDispatch*>(this); else if(URL.Complete == m_aInterceptedURL[4]) - return (frame::XDispatch*)this; + return static_cast<frame::XDispatch*>(this); else if(URL.Complete == m_aInterceptedURL[5]) - return (frame::XDispatch*)this; + return static_cast<frame::XDispatch*>(this); else { if(m_xSlaveDispatchProvider.is()) return m_xSlaveDispatchProvider->queryDispatch( @@ -286,17 +286,17 @@ Interceptor::queryDispatches( for(sal_Int32 i = 0; i < Requests.getLength(); ++i) if(m_aInterceptedURL[0] == Requests[i].FeatureURL.Complete) - aRet[i] = (frame::XDispatch*) this; + aRet[i] = static_cast<frame::XDispatch*>(this); else if(m_aInterceptedURL[1] == Requests[i].FeatureURL.Complete) - aRet[i] = (frame::XDispatch*) 0; + aRet[i] = nullptr; else if(m_aInterceptedURL[2] == Requests[i].FeatureURL.Complete) - aRet[i] = (frame::XDispatch*) this; + aRet[i] = static_cast<frame::XDispatch*>(this); else if(m_aInterceptedURL[3] == Requests[i].FeatureURL.Complete) - aRet[i] = (frame::XDispatch*) this; + aRet[i] = static_cast<frame::XDispatch*>(this); else if(m_aInterceptedURL[4] == Requests[i].FeatureURL.Complete) - aRet[i] = (frame::XDispatch*) this; + aRet[i] = static_cast<frame::XDispatch*>(this); else if(m_aInterceptedURL[5] == Requests[i].FeatureURL.Complete) - aRet[i] = (frame::XDispatch*) this; + aRet[i] = static_cast<frame::XDispatch*>(this); return aRet; } |