From 4bf95c4c31dd871065d4042028a4b3ae476dab70 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Fri, 8 Mar 2013 14:11:35 +0100 Subject: make use of startsWith() Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679 Reviewed-on: https://gerrit.libreoffice.org/2599 Tested-by: Fridrich Strba Reviewed-by: Fridrich Strba --- xmlscript/source/xml_helper/xml_impctx.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 5c2dec389677..9189e534d8d7 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -563,7 +563,7 @@ void DocumentHandlerImpl::startElement( pQNames[ nPos ] = xAttribs->getNameByIndex( nPos ); OUString const & rQAttributeName = pQNames[ nPos ]; - if (rQAttributeName.compareTo( m_sXMLNS, 5 ) == 0) + if (rQAttributeName.startsWith( m_sXMLNS )) { if (rQAttributeName.getLength() == 5) // set default namespace { -- cgit