[Libreoffice-commits] core.git: xmloff/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 23 10:15:33 UTC 2020


 xmloff/source/draw/ximpbody.cxx |    2 +-
 xmloff/source/draw/ximpstyl.cxx |    2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 448128c8419e3ba6fbf55395a1d8da5b07ba3595
Author:     Noel Grandin <noelgrandin at gmail.com>
AuthorDate: Sat Aug 22 22:43:03 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Aug 23 12:14:49 2020 +0200

    remove debugging asserts
    
    accidentally left behind in
        commit 7b83a28f1eb7d0687d07cfaaf8cfaaf9a8eea8c1
        use fastparser in SdXMLHeaderFooterDeclContext
    
    Change-Id: I53f7733fd186eb5ac8c4d143a9f847721d5ae81d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101192
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/xmloff/source/draw/ximpbody.cxx b/xmloff/source/draw/ximpbody.cxx
index 7e7325018cba..ac2015982a19 100644
--- a/xmloff/source/draw/ximpbody.cxx
+++ b/xmloff/source/draw/ximpbody.cxx
@@ -339,7 +339,7 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > SdXMLBodyContext::crea
             break;
         }
         default:
-            assert(false);
+            SAL_WARN("xmloff", "unknown element " << SvXMLImport::getPrefixAndNameFromToken(nElement));
     }
     return nullptr;
 }
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx
index 4e638adc1c5b..aafeade525b7 100644
--- a/xmloff/source/draw/ximpstyl.cxx
+++ b/xmloff/source/draw/ximpstyl.cxx
@@ -1527,7 +1527,6 @@ SdXMLHeaderFooterDeclContext::SdXMLHeaderFooterDeclContext(SvXMLImport& rImport,
         else
         {
             SAL_WARN("xmloff", "unknown attribute " << SvXMLImport::getPrefixAndNameFromToken(aIter.getToken()) << "=" << aIter.toString());
-            assert(false);
         }
     }
 }
@@ -1556,7 +1555,6 @@ void SdXMLHeaderFooterDeclContext::endFastElement(sal_Int32 nToken)
     else
     {
         SAL_WARN("xmloff", "unknown element " << SvXMLImport::getPrefixAndNameFromToken(nToken));
-        assert(false);
     }
 }
 


More information about the Libreoffice-commits mailing list