From 5e2fe8f2a0743e6e0fe587fe0f36d4bc9e0329b6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Jun 2015 11:26:25 +0200 Subject: loplugin:cstylecast: deal with those that are (technically) const_cast Change-Id: I636c05a34afc857c75a35e4c6fefedbce3e99c06 --- extensions/source/plugin/base/xplugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/source/plugin') diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx index 9933739cddca..c7c062191e1d 100644 --- a/extensions/source/plugin/base/xplugin.cxx +++ b/extensions/source/plugin/base/xplugin.cxx @@ -565,8 +565,8 @@ void XPlugin_Impl::loadPlugin() &getNPPInstance(), m_aPluginMode == PluginMode::FULL ? NP_FULL : NP_EMBED, ::sal::static_int_cast< int16_t, int >( m_nArgs ), - (char**)(m_nArgs ? m_pArgn : NULL), - (char**)(m_nArgs ? m_pArgv : NULL), + const_cast(m_nArgs ? m_pArgn : NULL), + const_cast(m_nArgs ? m_pArgv : NULL), NULL ); #ifdef MACOSX // m_aNPWindow is set up in the MacPluginComm from the view -- cgit