xmlscript/source/xml_helper/xml_impctx.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c6943a41a0a8830f9ef6fd25deb6354a52b26774
Author: Olivier Hallot <[email protected]>
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 <[email protected]>
    Tested-by: Jan Holesovsky <[email protected]>

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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to