[Libreoffice-commits] core.git: sw/source
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Thu Dec 3 07:03:30 UTC 2020
sw/source/filter/xml/xmltext.cxx | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
New commits:
commit 6a54cb56ae418db5088bbf874785b086616ceb45
Author: Noel <noelgrandin at gmail.com>
AuthorDate: Wed Dec 2 14:36:17 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Dec 3 08:02:44 2020 +0100
fastparser in SwXMLBodyContentContext
Change-Id: Iec7fd359e3f007d53e352ae6c0253e2e8e5661ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107127
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sw/source/filter/xml/xmltext.cxx b/sw/source/filter/xml/xmltext.cxx
index 1d7e33a23414..115dc1a5236d 100644
--- a/sw/source/filter/xml/xmltext.cxx
+++ b/sw/source/filter/xml/xmltext.cxx
@@ -33,9 +33,9 @@ public:
SwXMLBodyContentContext_Impl( SwXMLImport& rImport );
- virtual SvXMLImportContextRef CreateChildContext(
- sal_uInt16 nPrefix, const OUString& rLocalName,
- const Reference< xml::sax::XAttributeList > & xAttrList ) override;
+ css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
+ sal_Int32 nElement,
+ const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
// The body element's text:global attribute can be ignored, because
// we must have the correct object shell already.
@@ -49,15 +49,13 @@ SwXMLBodyContentContext_Impl::SwXMLBodyContentContext_Impl( SwXMLImport& rImport
{
}
-SvXMLImportContextRef SwXMLBodyContentContext_Impl::CreateChildContext(
- sal_uInt16 nPrefix, const OUString& rLocalName,
- const Reference< xml::sax::XAttributeList > & xAttrList )
+css::uno::Reference< css::xml::sax::XFastContextHandler > SwXMLBodyContentContext_Impl::createFastChildContext(
+ sal_Int32 nElement,
+ const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
{
- SvXMLImportContext *pContext = GetSwImport().GetTextImport()->CreateTextChildContext(
- GetImport(), nPrefix, rLocalName, xAttrList,
+ return GetSwImport().GetTextImport()->CreateTextChildContext(
+ GetImport(), nElement, xAttrList,
XMLTextType::Body );
-
- return pContext;
}
void SwXMLBodyContentContext_Impl::endFastElement(sal_Int32 )
More information about the Libreoffice-commits
mailing list