summaryrefslogtreecommitdiff
path: root/xmloff/source/meta
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-15 14:53:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-16 12:27:35 +0100
commit1b0a9a99709522cb4a7d189824ec5359ea430ff5 (patch)
tree80464308b57cb2349d00544c755a53ecc4e63193 /xmloff/source/meta
parent130c1ae09451c268fcd4f2d55f65ac7dc9581342 (diff)
use FasterParser for XMLVersionListPersistence
the SvXMLImport superclass of XMLVersionListImport already constructs a parser, so we can just use that one Change-Id: If35ae7c1670497c4833711eb5351a99aaa087044 Reviewed-on: https://gerrit.libreoffice.org/82786 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/meta')
-rw-r--r--xmloff/source/meta/xmlversion.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx
index 2aa38a9d5292..fc7bbe824f95 100644
--- a/xmloff/source/meta/xmlversion.cxx
+++ b/xmloff/source/meta/xmlversion.cxx
@@ -31,7 +31,6 @@
#include <com/sun/star/util/DateTime.hpp>
#include <com/sun/star/util/MeasureUnit.hpp>
#include <com/sun/star/xml/sax/InputSource.hpp>
-#include <com/sun/star/xml/sax/FastParser.hpp>
#include <com/sun/star/xml/sax/Writer.hpp>
#include <com/sun/star/xml/sax/SAXParseException.hpp>
#include <cppuhelper/supportsservice.hxx>
@@ -381,16 +380,12 @@ uno::Sequence< util::RevisionTag > SAL_CALL XMLVersionListPersistence::load( con
throw uno::RuntimeException();
// get filter
- Reference< XFastDocumentHandler > xFilter = new XMLVersionListImport( xContext, aVersions );
-
- // connect parser and filter
- Reference< XFastParser > xParser = xml::sax::FastParser::create(xContext);
- xParser->setFastDocumentHandler( xFilter );
+ rtl::Reference< XMLVersionListImport > xImport = new XMLVersionListImport( xContext, aVersions );
// parse
try
{
- xParser->parseStream( aParserInput );
+ xImport->parseStream( aParserInput );
}
catch( SAXParseException& ) {}
catch( SAXException& ) {}