summaryrefslogtreecommitdiff
path: root/extensions/source/plugin/base/context.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-17 18:45:03 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:47 +0100
commit7889f9e5a3b43d7edb6c6fdb3432d5a88fc804ac (patch)
treeaaca5caaaffebdc2969ece04e0c5bab3e2ab240b /extensions/source/plugin/base/context.cxx
parent924048531186f344b74ce663648b075c5d3d89a5 (diff)
Some more loplugin:cstylecast: extensions
Change-Id: I3b1a00f12b75e3b115e08289b7f486a6a9c3c863
Diffstat (limited to 'extensions/source/plugin/base/context.cxx')
-rw-r--r--extensions/source/plugin/base/context.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/plugin/base/context.cxx b/extensions/source/plugin/base/context.cxx
index d62d1fa91d49..31250b59996b 100644
--- a/extensions/source/plugin/base/context.cxx
+++ b/extensions/source/plugin/base/context.cxx
@@ -200,7 +200,7 @@ void XPluginContext_Impl::postURL(const Reference< ::com::sun::star::plugin::XPl
if( file )
{
- OUString aFileName( (char*)buf.getConstArray(), strlen((char*)buf.getConstArray()), m_aEncoding );
+ OUString aFileName( reinterpret_cast<char const *>(buf.getConstArray()), strlen(reinterpret_cast<char const *>(buf.getConstArray())), m_aEncoding );
INetURLObject aFilePath( aFileName );
aFileName = aFilePath.PathToFileName();
SvFileStream aStream( aFileName, StreamMode::READ );
@@ -227,7 +227,7 @@ void XPluginContext_Impl::postURL(const Reference< ::com::sun::star::plugin::XPl
aValues[0].Value <<= pPlugin->getRefererURL();
aValues[1].Name = "PostString";
- aValues[1].Value <<= OStringToOUString( (char*)( file ? aBuf : buf ).getConstArray(), m_aEncoding );
+ aValues[1].Value <<= OStringToOUString( reinterpret_cast<char const *>(( file ? aBuf : buf ).getConstArray()), m_aEncoding );
Sequence< ::com::sun::star::beans::PropertyValue > aArgs( aValues, 2 );
Reference< ::com::sun::star::lang::XComponent > xComp =
xDesktop->loadComponentFromURL(