diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-09-06 17:24:33 -0300 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-09-07 08:33:41 +0000 |
commit | c6943a41a0a8830f9ef6fd25deb6354a52b26774 (patch) | |
tree | 72b989394cc065dd06b4eeb9d6ad86a5fa4abaaf /xmlscript | |
parent | 06ae26b5676c29c4d1cc9c65f5bbaede9483a21d (diff) |
Correct OUString check with proper startsWith()
This patch fixes an error introduced in c75af8578d921040e1baf8414edd7239969bcd45,
with OUString::startsWith() introduced by Lubos Lunak in 095ffaf5efef5e8fdc4d7dfa8cd90fff7b768661
Thanks to Lubos and Kendy.
Change-Id: Idcfb9ef59cfdf4c7b08193f5c137b985fa8b9965
Reviewed-on: https://gerrit.libreoffice.org/573
Reviewed-by: Jan Holesovsky <kendy@suse.cz>
Tested-by: Jan Holesovsky <kendy@suse.cz>
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xml_helper/xml_impctx.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 252c35e5d987..5c2dec389677 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -596,7 +596,7 @@ void DocumentHandlerImpl::startElement( { OUString const & rQAttributeName = pQNames[ nPos ]; OSL_ENSURE( - rQAttributeName.compareToAscii( "xmlns:" ) != 0, + !rQAttributeName.startsWith( "xmlns:" ), "### unexpected xmlns!" ); // collect attribute's uid and current prefix |