From dad6155e2882e27b972845d458087d8ecbf5be43 Mon Sep 17 00:00:00 2001 From: Noel Date: Fri, 4 Dec 2020 14:42:23 +0200 Subject: move some logic inside createFastChildContextFallback Change-Id: I5e73b4b24e4782bb0740c0abd817b38b47c3e9c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107220 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/core/xmlictxt.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmloff/source') diff --git a/xmloff/source/core/xmlictxt.cxx b/xmloff/source/core/xmlictxt.cxx index 0074ee886089..b41d847805f0 100644 --- a/xmloff/source/core/xmlictxt.cxx +++ b/xmloff/source/core/xmlictxt.cxx @@ -112,6 +112,10 @@ uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::cre css::uno::Reference< css::xml::sax::XFastContextHandler > SvXMLImportContext::createFastChildContextFallback(sal_Int32 Element, const uno::Reference< xml::sax::XFastAttributeList > & Attribs) { + auto p = createFastChildContext(Element, Attribs); + if (p) + return p; + // fall back to slow-parser path const OUString& rPrefix = SvXMLImport::getNamespacePrefixFromToken(Element, &mrImport.GetNamespaceMap()); const OUString& rLocalName = SvXMLImport::getNameFromToken( Element ); -- cgit