xmloff/source/text/XMLAutoTextContainerEventImport.cxx | 13 +++++++------ xmloff/source/text/XMLAutoTextContainerEventImport.hxx | 7 +++---- 2 files changed, 10 insertions(+), 10 deletions(-)
New commits: commit 8cbb22c4679f0922ea2b28372678357e77b55b42 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Fri Nov 20 17:17:27 2020 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Nov 21 13:53:26 2020 +0100 fastparser in XMLAutoTextContainerEventImport Change-Id: I1f4003166185fca67bc6ce8abe967e7c99d2237a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106278 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/xmloff/source/text/XMLAutoTextContainerEventImport.cxx b/xmloff/source/text/XMLAutoTextContainerEventImport.cxx index 1c9bc76eaaa1..bb5101b52afa 100644 --- a/xmloff/source/text/XMLAutoTextContainerEventImport.cxx +++ b/xmloff/source/text/XMLAutoTextContainerEventImport.cxx @@ -25,6 +25,7 @@ #include <xmloff/xmlnamespace.hxx> #include <xmloff/xmltoken.hxx> #include <xmloff/XMLEventsImportContext.hxx> +#include <sal/log.hxx> using namespace ::com::sun::star; @@ -48,16 +49,16 @@ XMLAutoTextContainerEventImport::~XMLAutoTextContainerEventImport() { } -SvXMLImportContextRef XMLAutoTextContainerEventImport::CreateChildContext( - sal_uInt16 nPrefix, - const OUString& rLocalName, - const Reference<XAttributeList> & ) +css::uno::Reference< css::xml::sax::XFastContextHandler > XMLAutoTextContainerEventImport::createFastChildContext( + sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& ) { - if ( (XML_NAMESPACE_OFFICE == nPrefix) && - IsXMLToken( rLocalName, XML_EVENT_LISTENERS) ) + if ( nElement == XML_ELEMENT(OFFICE, XML_EVENT_LISTENERS) ) { return new XMLEventsImportContext(GetImport(), rEvents); } + else + XMLOFF_WARN_UNKNOWN_ELEMENT("xmloff", nElement); return nullptr; } diff --git a/xmloff/source/text/XMLAutoTextContainerEventImport.hxx b/xmloff/source/text/XMLAutoTextContainerEventImport.hxx index f943ac51653d..26270a505838 100644 --- a/xmloff/source/text/XMLAutoTextContainerEventImport.hxx +++ b/xmloff/source/text/XMLAutoTextContainerEventImport.hxx @@ -51,10 +51,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 >& xAttrList ) override; }; #endif _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits