From 6df3d5e93a86a3ecb79cdb11e943e037d7648724 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 10 Nov 2014 15:05:22 +0100 Subject: remove pointless const_cast Change-Id: I6026ab64f0cfe1d509c8f94ce3b9c6f700c823cf --- sax/source/fastparser/fastparser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sax') diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 12429beda9a4..5c7871351cfb 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -740,8 +740,8 @@ sal_Int32 FastSaxParserImpl::GetTokenWithContextNamespace( sal_Int32 nNamespaceT void FastSaxParserImpl::splitName( const XML_Char *pwName, const XML_Char *&rpPrefix, sal_Int32 &rPrefixLen, const XML_Char *&rpName, sal_Int32 &rNameLen ) { - XML_Char *p; - for( p = const_cast< XML_Char* >( pwName ), rNameLen = 0, rPrefixLen = 0; *p; p++ ) + const XML_Char *p; + for( p = pwName, rNameLen = 0, rPrefixLen = 0; *p; p++ ) { if( *p == ':' ) { -- cgit