From b83509470b28af6cdc966a7eaa4184f9e2bff86a Mon Sep 17 00:00:00 2001 From: Noel Date: Thu, 3 Dec 2020 11:34:11 +0200 Subject: fastparser in XMLFootnoteBodyImportContext Change-Id: Iebb11d1a8a27bda894870bd6701faea923ab3927 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107148 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/text/XMLFootnoteBodyImportContext.cxx | 14 +++++--------- xmloff/source/text/XMLFootnoteBodyImportContext.hxx | 7 +++---- 2 files changed, 8 insertions(+), 13 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/text/XMLFootnoteBodyImportContext.cxx b/xmloff/source/text/XMLFootnoteBodyImportContext.cxx index 8b0268318355..406d30d75289 100644 --- a/xmloff/source/text/XMLFootnoteBodyImportContext.cxx +++ b/xmloff/source/text/XMLFootnoteBodyImportContext.cxx @@ -33,20 +33,16 @@ XMLFootnoteBodyImportContext::XMLFootnoteBodyImportContext( SvXMLImport& rImport { } -SvXMLImportContextRef XMLFootnoteBodyImportContext::CreateChildContext( - sal_uInt16 nPrefix, - const OUString& rLocalName, - const Reference & xAttrList ) +css::uno::Reference< css::xml::sax::XFastContextHandler > XMLFootnoteBodyImportContext::createFastChildContext( + sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) { // return text context - SvXMLImportContext *pContext = + return GetImport().GetTextImport()->CreateTextChildContext(GetImport(), - nPrefix, - rLocalName, + nElement, xAttrList, XMLTextType::Footnote); - - return pContext; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/text/XMLFootnoteBodyImportContext.hxx b/xmloff/source/text/XMLFootnoteBodyImportContext.hxx index 19007558899e..1831f5bd1f59 100644 --- a/xmloff/source/text/XMLFootnoteBodyImportContext.hxx +++ b/xmloff/source/text/XMLFootnoteBodyImportContext.hxx @@ -41,10 +41,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; }; -- cgit