diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-19 15:12:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:54 +0100 |
commit | 2880dfe3012776e49a47e2e1b6e4bcfa1636be17 (patch) | |
tree | 9f1ce820350b9ea6a9e0584b0a5191512f87c6c6 /xmlsecurity/source/xmlsec/saxhelper.cxx | |
parent | b388b9fc48ee0e92dfffef910f141a2ee338c413 (diff) |
Some more loplugin:cstylecast: xmlsecurity
Change-Id: Iceaeefc26fec2643d3fbb916ab7719a918beb496
Diffstat (limited to 'xmlsecurity/source/xmlsec/saxhelper.cxx')
-rw-r--r-- | xmlsecurity/source/xmlsec/saxhelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<xmlChar const *>(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<xmlChar const *>(ostr.getStr()), length ) ; } /** |