diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-10-01 18:45:23 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-10-23 13:24:26 +0200 |
commit | eb8e7a76328408bc12ff4abb761d7f44c27bf402 (patch) | |
tree | c8722533ef44230f3f26f5fa7cbb1d1132f17d6a /sax/source/tools/fshelper.cxx | |
parent | 865fc150ea61b49dc28a56f287096efae0621163 (diff) |
FastSerializer: Simplify a bit
Change-Id: I7dee908f5441ad34128d688e1008fd6ffad2ab3f
Diffstat (limited to 'sax/source/tools/fshelper.cxx')
-rw-r--r-- | sax/source/tools/fshelper.cxx | 8 |
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(); } |