diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-05 10:04:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-06 11:42:07 +0100 |
commit | 485242225388b5d6c559b56c654e816e91af34e7 (patch) | |
tree | c38cd705e89b0ef8576aadfbd502a6ff52bc6f4e /comphelper/source/streaming | |
parent | 65753b9713ae798804da078dd4e9ed3e478e5264 (diff) |
split closeOutput up
Change-Id: Id6408fa804e1049ceab012ec0220d8e6f8d8e555
Diffstat (limited to 'comphelper/source/streaming')
-rw-r--r-- | comphelper/source/streaming/seqstream.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/comphelper/source/streaming/seqstream.cxx b/comphelper/source/streaming/seqstream.cxx index b375f7c6d6be..f1e397d13770 100644 --- a/comphelper/source/streaming/seqstream.cxx +++ b/comphelper/source/streaming/seqstream.cxx @@ -199,12 +199,9 @@ void SAL_CALL OSequenceOutputStream::flush( ) m_rSequence.realloc(m_nSize); } - -void SAL_CALL OSequenceOutputStream::closeOutput( ) +void OSequenceOutputStream::finalizeOutput() { MutexGuard aGuard(m_aMutex); - if (!m_bConnected) - throw NotConnectedException(); // cut the sequence to the real size m_rSequence.realloc(m_nSize); @@ -212,6 +209,15 @@ void SAL_CALL OSequenceOutputStream::closeOutput( ) m_bConnected = false; } +void SAL_CALL OSequenceOutputStream::closeOutput() +{ + MutexGuard aGuard(m_aMutex); + if (!m_bConnected) + throw NotConnectedException(); + + finalizeOutput(); +} + } // namespace comphelper /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |