reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1f1d75feef48633e488df56880f422d83cba8cd9
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Jan 18 09:21:20 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Jan 18 12:25:40 2023 +0000

    cid#1519050 silence Unchecked dynamic_cast
    
    Change-Id: I024094717141eb3c545ee0491a0d34f03a74c8c1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145707
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx 
b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
index 3a1a353286e5..aa064caef2ef 100644
--- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
@@ -188,6 +188,7 @@ void SAL_CALL ExportDocumentHandler::startElement(const 
OUString & _sName, const
     else if ( _sName == "chart:plot-area" )
     {
         comphelper::AttributeList* pList = 
dynamic_cast<comphelper::AttributeList*>(xAttribs.get());
+        assert(pList && "can only succeed");
         pList->RemoveAttribute("table:cell-range-address");
     }
     else if ( _sName == "chart:categories" )

Reply via email to