diff options
author | Noel <noelgrandin@gmail.com> | 2020-12-03 11:34:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-03 19:37:11 +0100 |
commit | b83509470b28af6cdc966a7eaa4184f9e2bff86a (patch) | |
tree | ed6ac0eede2cae0c227a2223a2c12f1ddeffa7ec | |
parent | e4c30ac9c50bf102184bb8e2a90de0acdea042ee (diff) |
fastparser in XMLFootnoteBodyImportContext
Change-Id: Iebb11d1a8a27bda894870bd6701faea923ab3927
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107148
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | xmloff/source/text/XMLFootnoteBodyImportContext.cxx | 14 | ||||
-rw-r--r-- | xmloff/source/text/XMLFootnoteBodyImportContext.hxx | 7 |
2 files changed, 8 insertions, 13 deletions
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<XAttributeList> & 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<css::xml::sax::XAttributeList> & 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; }; |