diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-01 11:11:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-01 13:08:43 +0200 |
commit | e5bf214ebb58637d1af89ea137c8952a46f14ef4 (patch) | |
tree | 7a67f0e81a7cb5563726c9b2dab1008a41c5e032 /extensions/source/plugin | |
parent | 4923ac72aaca2f0671aed98de33902eac0810131 (diff) |
loplugin: cstylecast
Change-Id: I6ea98852ba775d85ccd54823b67224ea7f587c65
Diffstat (limited to 'extensions/source/plugin')
-rw-r--r-- | extensions/source/plugin/base/multiplx.cxx | 2 | ||||
-rw-r--r-- | extensions/source/plugin/base/nfuncs.cxx | 4 | ||||
-rw-r--r-- | extensions/source/plugin/base/xplugin.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/plugin/base/multiplx.cxx b/extensions/source/plugin/base/multiplx.cxx index 1411ead3d3c6..54ca0015df44 100644 --- a/extensions/source/plugin/base/multiplx.cxx +++ b/extensions/source/plugin/base/multiplx.cxx @@ -185,7 +185,7 @@ if( pCont ) \ { \ if( aIt.hasMoreElements() ) \ { \ - InterfaceName * pListener = (InterfaceName *)aIt.next(); \ + InterfaceName * pListener = static_cast<InterfaceName *>(aIt.next()); \ try \ { \ pListener->MethodName( aEvt ); \ diff --git a/extensions/source/plugin/base/nfuncs.cxx b/extensions/source/plugin/base/nfuncs.cxx index c5d25be1f54d..9adcf37e16fb 100644 --- a/extensions/source/plugin/base/nfuncs.cxx +++ b/extensions/source/plugin/base/nfuncs.cxx @@ -424,7 +424,7 @@ extern "C" { if( ! pStream || pStream->getStreamType() != InputStream ) return NPERR_FILE_NOT_FOUND; - PluginInputStream* pInputStream = (PluginInputStream*)pStream; + PluginInputStream* pInputStream = static_cast<PluginInputStream*>(pStream); boost::scoped_array<sal_Int8> pBytes; int nBytes = 0; pPlugin->enterPluginCallback(); @@ -534,7 +534,7 @@ int32_t SAL_CALL NP_LOADDS NPN_Write( NPP instance, NPStream* stream, int32_t l pImpl->enterPluginCallback(); ::com::sun::star::uno::Sequence<sal_Int8> Bytes( (sal_Int8*)buffer, len ); - ((PluginOutputStream*)pStream)->getOutputStream()->writeBytes( Bytes ); + static_cast<PluginOutputStream*>(pStream)->getOutputStream()->writeBytes( Bytes ); pImpl->leavePluginCallback(); return len; diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx index bf201a6d2f36..4386de4638f0 100644 --- a/extensions/source/plugin/base/xplugin.cxx +++ b/extensions/source/plugin/base/xplugin.cxx @@ -573,7 +573,7 @@ void XPlugin_Impl::loadPlugin() if (pEnvData->pDisplay) // headless? { XSync( (Display*)pEnvData->pDisplay, False ); - m_aNPWindow.window = (void*)pEnvData->aWindow; + m_aNPWindow.window = reinterpret_cast<void*>(pEnvData->aWindow); } else { |