From 2880dfe3012776e49a47e2e1b6e4bcfa1636be17 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 19 Jan 2015 15:12:02 +0100 Subject: Some more loplugin:cstylecast: xmlsecurity Change-Id: Iceaeefc26fec2643d3fbb916ab7719a918beb496 --- xmlsecurity/source/xmlsec/saxhelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmlsecurity/source/xmlsec/saxhelper.cxx') diff --git a/xmlsecurity/source/xmlsec/saxhelper.cxx b/xmlsecurity/source/xmlsec/saxhelper.cxx index 86d5dba09061..9c454a30a921 100644 --- a/xmlsecurity/source/xmlsec/saxhelper.cxx +++ b/xmlsecurity/source/xmlsec/saxhelper.cxx @@ -38,7 +38,7 @@ namespace cssxcsax = com::sun::star::xml::csax; xmlChar* ous_to_xmlstr( const OUString& oustr ) { OString ostr = OUStringToOString( oustr , RTL_TEXTENCODING_UTF8 ) ; - return xmlStrndup( ( xmlChar* )ostr.getStr(), ( int )ostr.getLength() ) ; + return xmlStrndup( reinterpret_cast(ostr.getStr()), ( int )ostr.getLength() ) ; } /** @@ -50,7 +50,7 @@ xmlChar* ous_to_nxmlstr( const OUString& oustr, int& length ) OString ostr = OUStringToOString( oustr , RTL_TEXTENCODING_UTF8 ) ; length = ostr.getLength(); - return xmlStrndup( ( xmlChar* )ostr.getStr(), length ) ; + return xmlStrndup( reinterpret_cast(ostr.getStr()), length ) ; } /** -- cgit v1.2.3