summaryrefslogtreecommitdiff
path: root/sax/source/tools/fshelper.cxx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-10-01 18:45:23 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-10-23 13:24:26 +0200
commiteb8e7a76328408bc12ff4abb761d7f44c27bf402 (patch)
treec8722533ef44230f3f26f5fa7cbb1d1132f17d6a /sax/source/tools/fshelper.cxx
parent865fc150ea61b49dc28a56f287096efae0621163 (diff)
FastSerializer: Simplify a bit
Change-Id: I7dee908f5441ad34128d688e1008fd6ffad2ab3f
Diffstat (limited to 'sax/source/tools/fshelper.cxx')
-rw-r--r--sax/source/tools/fshelper.cxx8
1 files changed, 1 insertions, 7 deletions
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 <sax/fshelper.hxx>
#include "fastserializer.hxx"
-#include <com/sun/star/xml/sax/FastTokenHandler.hpp>
#include <com/sun/star/xml/sax/XFastTokenHandler.hpp>
-#include <comphelper/processfactory.hxx>
#include <rtl/ustrbuf.hxx>
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();
}