[Libreoffice-commits] .: xmlscript/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Sep 7 01:34:00 PDT 2012
xmlscript/source/xml_helper/xml_impctx.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c6943a41a0a8830f9ef6fd25deb6354a52b26774
Author: Olivier Hallot <olivier.hallot at alta.org.br>
Date: Thu Sep 6 17:24:33 2012 -0300
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 at suse.cz>
Tested-by: Jan Holesovsky <kendy at suse.cz>
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx
index 252c35e..5c2dec3 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
More information about the Libreoffice-commits
mailing list