summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-22 16:10:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-23 06:46:41 +0200
commitea20fcce1dac735a9730ab6672bf60ccec595e71 (patch)
treedf8f25ec6a90f47fb878236e239f8a23e679943c /sax
parenta17b19726d723b16dacb49db7a8efd5fee9cb4cf (diff)
close some more holes in structures
and improve the pahole script so I can just run it once over the whole codebase Change-Id: I7e1775974a3a61f8c0e40646158f01163ace60cc Reviewed-on: https://gerrit.libreoffice.org/76122 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/tools/CachedOutputStream.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sax/source/tools/CachedOutputStream.hxx b/sax/source/tools/CachedOutputStream.hxx
index 8eca0a4c84e1..0a2db555752a 100644
--- a/sax/source/tools/CachedOutputStream.hxx
+++ b/sax/source/tools/CachedOutputStream.hxx
@@ -33,19 +33,19 @@ class CachedOutputStream
/// When buffer hits this size, it's written to mxOutputStream
static const sal_Int32 mnMaximumSize = 0x10000;
+ /// ForMerge structure is used for sorting elements in Writer
+ std::shared_ptr< ForMergeBase > mpForMerge;
+ const css::uno::Sequence<sal_Int8> mpCache;
/// Output stream, usually writing data into files.
css::uno::Reference< css::io::XOutputStream > mxOutputStream;
- sal_Int32 mnCacheWrittenSize;
- const css::uno::Sequence<sal_Int8> mpCache;
uno_Sequence *pSeq;
+ sal_Int32 mnCacheWrittenSize;
bool mbWriteToOutStream;
- /// ForMerge structure is used for sorting elements in Writer
- std::shared_ptr< ForMergeBase > mpForMerge;
public:
- CachedOutputStream() : mnCacheWrittenSize(0)
- , mpCache(mnMaximumSize)
+ CachedOutputStream() : mpCache(mnMaximumSize)
, pSeq(mpCache.get())
+ , mnCacheWrittenSize(0)
, mbWriteToOutStream(true)
{}