summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/xmlsec/saxhelper.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-19 15:12:02 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:54 +0100
commit2880dfe3012776e49a47e2e1b6e4bcfa1636be17 (patch)
tree9f1ce820350b9ea6a9e0584b0a5191512f87c6c6 /xmlsecurity/source/xmlsec/saxhelper.cxx
parentb388b9fc48ee0e92dfffef910f141a2ee338c413 (diff)
Some more loplugin:cstylecast: xmlsecurity
Change-Id: Iceaeefc26fec2643d3fbb916ab7719a918beb496
Diffstat (limited to 'xmlsecurity/source/xmlsec/saxhelper.cxx')
-rw-r--r--xmlsecurity/source/xmlsec/saxhelper.cxx4
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 ) ;
}
/**