summaryrefslogtreecommitdiff
path: root/sax/source/tools/fshelper.cxx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-09-25 16:34:36 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-10-23 11:53:16 +0200
commitd55648b7e5cd499196389ed9ba5c7badbf3522e5 (patch)
tree1a11bb08f1460888958507ba4c91f82286a2eb13 /sax/source/tools/fshelper.cxx
parentcc3ac382a2827a42d45f3fcb5e2149c163667ba0 (diff)
FastSerializer: check for valid output stream in one place is enough
Change-Id: Id89fb1f0444331c2858a9795ae81dcdb875d3d2b
Diffstat (limited to 'sax/source/tools/fshelper.cxx')
-rw-r--r--sax/source/tools/fshelper.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx
index c19bd4b8c359..c49c0da04bc9 100644
--- a/sax/source/tools/fshelper.cxx
+++ b/sax/source/tools/fshelper.cxx
@@ -35,6 +35,7 @@ FastSerializerHelper::FastSerializerHelper(const Reference< io::XOutputStream >&
mxTokenHandler = css::xml::sax::FastTokenHandler::create(xContext);
mpSerializer->setFastTokenHandler( mxTokenHandler );
+ assert(xOutputStream.is()); // cannot do anything without that
mpSerializer->setOutputStream( xOutputStream );
if( bWriteHeader )
mpSerializer->startDocument();