summaryrefslogtreecommitdiff
path: root/embeddedobj/source/general/intercept.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'embeddedobj/source/general/intercept.cxx')
-rw-r--r--embeddedobj/source/general/intercept.cxx24
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;
}