[Libreoffice-commits] core.git: xmloff/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Sat Nov 16 11:28:16 UTC 2019
xmloff/source/meta/xmlversion.cxx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
New commits:
commit 1b0a9a99709522cb4a7d189824ec5359ea430ff5
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Nov 15 14:53:46 2019 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sat Nov 16 12:27:35 2019 +0100
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 at collabora.co.uk>
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& ) {}
More information about the Libreoffice-commits
mailing list