diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-11-03 18:25:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-04 06:34:20 +0100 |
commit | 81fe31d2c8977791f9b90ab1da4fbb1a778f87fb (patch) | |
tree | 78cca054bf77eecd3de3a7b059063d80d956edf7 /xmloff/inc | |
parent | 64e58879c4445bfc733d337c53ac7dc1748fdbb9 (diff) |
use fastparser in XMLEmbeddedObjectImportContext
Change-Id: I5fc61239e60a3129b350895293760a345baf3ce5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105260
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/inc')
-rw-r--r-- | xmloff/inc/XMLEmbeddedObjectImportContext.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmloff/inc/XMLEmbeddedObjectImportContext.hxx b/xmloff/inc/XMLEmbeddedObjectImportContext.hxx index 22f30adad79b..7f2a739e07af 100644 --- a/xmloff/inc/XMLEmbeddedObjectImportContext.hxx +++ b/xmloff/inc/XMLEmbeddedObjectImportContext.hxx @@ -20,14 +20,14 @@ #ifndef INCLUDED_XMLOFF_INC_XMLEMBEDDEDOBJECTIMPORTCONTEXT_HXX #define INCLUDED_XMLOFF_INC_XMLEMBEDDEDOBJECTIMPORTCONTEXT_HXX -#include <com/sun/star/xml/sax/XDocumentHandler.hpp> +#include <com/sun/star/xml/sax/XFastDocumentHandler.hpp> #include <xmloff/xmlictxt.hxx> namespace com::sun::star::lang { class XComponent; } class XMLEmbeddedObjectImportContext final : public SvXMLImportContext { - css::uno::Reference<css::xml::sax::XDocumentHandler > xHandler; + css::uno::Reference<css::xml::sax::XFastDocumentHandler > mxFastHandler; css::uno::Reference<css::lang::XComponent > xComp; OUString sFilterService; @@ -48,7 +48,9 @@ public: const OUString& rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override; - virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override; + virtual void SAL_CALL startFastElement( + sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override; virtual void SAL_CALL endFastElement(sal_Int32 nElement) override; |