starmath/source/mathmlimport.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 4797a92297883f2a8c62f0ffaa83b89b8d0737cb Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Tue Dec 24 21:34:05 2019 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Dec 25 07:29:36 2019 +0100 use FastParser in starmath Change-Id: I5633b8e17d3150fac356ac7f7c0369d119a2af60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85790 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> 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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits