From eb8e7a76328408bc12ff4abb761d7f44c27bf402 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Wed, 1 Oct 2014 18:45:23 +0200 Subject: FastSerializer: Simplify a bit Change-Id: I7dee908f5441ad34128d688e1008fd6ffad2ab3f --- sax/source/tools/fshelper.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sax/source/tools/fshelper.cxx') diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx index 222735207b3d..55be646f748d 100644 --- a/sax/source/tools/fshelper.cxx +++ b/sax/source/tools/fshelper.cxx @@ -19,9 +19,7 @@ #include #include "fastserializer.hxx" -#include #include -#include #include using namespace ::com::sun::star; @@ -30,12 +28,8 @@ using namespace ::com::sun::star::uno; namespace sax_fastparser { FastSerializerHelper::FastSerializerHelper(const Reference< io::XOutputStream >& xOutputStream, bool bWriteHeader ) : - mpSerializer(new FastSaxSerializer()) + mpSerializer(new FastSaxSerializer(xOutputStream)) { - Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext(), UNO_SET_THROW ); - mpSerializer->setFastTokenHandler( css::xml::sax::FastTokenHandler::create(xContext) ); - assert(xOutputStream.is()); // cannot do anything without that - mpSerializer->setOutputStream( xOutputStream ); if( bWriteHeader ) mpSerializer->startDocument(); } -- cgit