summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2019-12-24 21:34:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-25 07:29:36 +0100
commit4797a92297883f2a8c62f0ffaa83b89b8d0737cb (patch)
tree397db3645b99c82cee14f66bc5585a72112a3467 /starmath
parentffe9ff2cf63112ac04a695740a5637f25c16abe8 (diff)
use FastParser in starmath
Change-Id: I5633b8e17d3150fac356ac7f7c0369d119a2af60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85790 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathmlimport.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 9970e34dd3bc..ddeea7932351 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -23,7 +23,7 @@ into one string, xml parser hands them to us line by line rather than all in
one go*/
#include <com/sun/star/xml/sax/InputSource.hpp>
-#include <com/sun/star/xml/sax/Parser.hpp>
+#include <com/sun/star/xml/sax/FastParser.hpp>
#include <com/sun/star/xml/sax/XFastParser.hpp>
#include <com/sun/star/xml/sax/SAXParseException.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
@@ -264,13 +264,13 @@ ErrCode SmXMLImportWrapper::ReadThroughComponent(
aParserInput.aInputStream = xInputStream;
// get parser
- Reference< xml::sax::XParser > xParser = xml::sax::Parser::create(rxContext);
+ Reference< xml::sax::XFastParser > xParser = xml::sax::FastParser::create(rxContext);
Sequence<Any> aArgs( 1 );
aArgs[0] <<= rPropSet;
// get filter
- Reference< xml::sax::XDocumentHandler > xFilter(
+ Reference< xml::sax::XFastDocumentHandler > xFilter(
rxContext->getServiceManager()->createInstanceWithArgumentsAndContext(
OUString::createFromAscii(pFilterName), aArgs, rxContext),
UNO_QUERY );
@@ -279,7 +279,7 @@ ErrCode SmXMLImportWrapper::ReadThroughComponent(
return nError;
// connect parser and filter
- xParser->setDocumentHandler( xFilter );
+ xParser->setFastDocumentHandler( xFilter );
// connect model and filter
Reference < XImporter > xImporter( xFilter, UNO_QUERY );