diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlimp.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index c502d0d7e67e..d58cb4216139 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -843,8 +843,9 @@ void SAL_CALL SvXMLImport::startFastElement (sal_Int32 Element, maNamespaceHandler->addNSDeclAttributes( maNamespaceAttrList ); std::unique_ptr<SvXMLNamespaceMap> pRewindMap( processNSAttributes( maNamespaceAttrList.get() )); - SvXMLImportContext *pContext = dynamic_cast<SvXMLImportContext*>( xContext.get() ); - if( pContext && pRewindMap ) + assert( dynamic_cast<SvXMLImportContext*>( xContext.get() ) != nullptr ); + SvXMLImportContext *pContext = static_cast<SvXMLImportContext*>( xContext.get() ); + if (pRewindMap) pContext->PutRewindMap(std::move(pRewindMap)); maContexts.push(pContext); } |