From 8cf3181243d9a4695ef430463df34699c37462f9 Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 2 Dec 2020 14:42:11 +0200 Subject: fastparser in XMLIndexBodyContext Change-Id: I4fd0342f8d008ec9dfd3f148d5cdfb3a27c1753e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107130 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/text/XMLIndexBodyContext.cxx | 9 ++++----- xmloff/source/text/XMLIndexBodyContext.hxx | 7 +++---- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'xmloff/source') diff --git a/xmloff/source/text/XMLIndexBodyContext.cxx b/xmloff/source/text/XMLIndexBodyContext.cxx index b83e7fd36531..05392d57a4b4 100644 --- a/xmloff/source/text/XMLIndexBodyContext.cxx +++ b/xmloff/source/text/XMLIndexBodyContext.cxx @@ -37,14 +37,13 @@ XMLIndexBodyContext::~XMLIndexBodyContext() { } -SvXMLImportContextRef XMLIndexBodyContext::CreateChildContext( - sal_uInt16 nPrefix, - const OUString& rLocalName, - const Reference & xAttrList) +css::uno::Reference< css::xml::sax::XFastContextHandler > XMLIndexBodyContext::createFastChildContext( + sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) { // return text content (if possible) SvXMLImportContext* pContext = GetImport().GetTextImport()->CreateTextChildContext( - GetImport(), nPrefix, rLocalName, xAttrList, XMLTextType::Section ); + GetImport(), nElement, xAttrList, XMLTextType::Section ); if (pContext) bHasContent = true; diff --git a/xmloff/source/text/XMLIndexBodyContext.hxx b/xmloff/source/text/XMLIndexBodyContext.hxx index 936542e243ea..769c1f04b51b 100644 --- a/xmloff/source/text/XMLIndexBodyContext.hxx +++ b/xmloff/source/text/XMLIndexBodyContext.hxx @@ -51,10 +51,9 @@ public: protected: - virtual SvXMLImportContextRef CreateChildContext( - sal_uInt16 nPrefix, - const OUString& rLocalName, - const css::uno::Reference & xAttrList ) override; + virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( + sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override; }; inline bool XMLIndexBodyContext::HasContent() const -- cgit