[Libreoffice-commits] core.git: xmloff/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 25 14:05:15 UTC 2020
xmloff/source/text/XMLTextMarkImportContext.cxx | 15 ++++++---------
xmloff/source/text/XMLTextMarkImportContext.hxx | 10 ++++------
2 files changed, 10 insertions(+), 15 deletions(-)
New commits:
commit 7a72585d923da5d72c4fde4f7bc9e74b3472efb3
Author: Noel Grandin <noelgrandin at gmail.com>
AuthorDate: Tue Nov 24 20:57:48 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Nov 25 15:04:28 2020 +0100
fastparser in XMLTextMarkImportContext
Change-Id: Ice747ce56eb024df1976f468accea3fc901c022d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106553
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx b/xmloff/source/text/XMLTextMarkImportContext.cxx
index 080009a8e6f6..f759c1b6fe8d 100644
--- a/xmloff/source/text/XMLTextMarkImportContext.cxx
+++ b/xmloff/source/text/XMLTextMarkImportContext.cxx
@@ -56,10 +56,8 @@ using namespace ::xmloff::token;
XMLFieldParamImportContext::XMLFieldParamImportContext(
SvXMLImport& rImport,
- XMLTextImportHelper& rHlp,
- sal_uInt16 nPrefix,
- const OUString& rLocalName ) :
- SvXMLImportContext(rImport, nPrefix, rLocalName),
+ XMLTextImportHelper& rHlp ) :
+ SvXMLImportContext(rImport),
rHelper(rHlp)
{
}
@@ -427,12 +425,11 @@ void XMLTextMarkImportContext::endFastElement(sal_Int32 )
}
}
-SvXMLImportContextRef XMLTextMarkImportContext::CreateChildContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const css::uno::Reference< css::xml::sax::XAttributeList >& )
+css::uno::Reference< css::xml::sax::XFastContextHandler > XMLTextMarkImportContext::createFastChildContext(
+ sal_Int32 ,
+ const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
{
- return new XMLFieldParamImportContext(GetImport(), m_rHelper,
- nPrefix, rLocalName);
+ return new XMLFieldParamImportContext(GetImport(), m_rHelper);
}
diff --git a/xmloff/source/text/XMLTextMarkImportContext.hxx b/xmloff/source/text/XMLTextMarkImportContext.hxx
index d0e8f03a2e81..a5817b193947 100644
--- a/xmloff/source/text/XMLTextMarkImportContext.hxx
+++ b/xmloff/source/text/XMLTextMarkImportContext.hxx
@@ -42,9 +42,7 @@ class XMLFieldParamImportContext : public SvXMLImportContext
public:
XMLFieldParamImportContext(
SvXMLImport& rImport,
- XMLTextImportHelper& rHlp,
- sal_uInt16 nPrfx,
- const OUString& rLocalName );
+ XMLTextImportHelper& rHlp );
virtual void SAL_CALL startFastElement(
sal_Int32 nElement,
@@ -91,9 +89,9 @@ protected:
const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList) override;
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
- 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 >& xAttrList ) override;
public:
static css::uno::Reference< css::text::XTextContent > CreateAndInsertMark(
More information about the Libreoffice-commits
mailing list