summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-01-10 11:51:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-10 17:59:45 +0100
commit17950f4d204e9947f125ebc0aac1156eba6501f2 (patch)
tree1b51bdc13a1006aeb29a6dff658ba1b3f1028708 /lotuswordpro/source
parentsd theme: fix applying new colors after theme change for group shapes (diff)
downloadcore-17950f4d204e9947f125ebc0aac1156eba6501f2.tar.gz
core-17950f4d204e9947f125ebc0aac1156eba6501f2.zip
use less SvStream::Flush()
Flush() turns into a sync() on the device, which is pretty slow. Most of the time all we actually want to do is to flush the internal buffers from the SvStream. So expose the FlushBuffer method and use that where possible. And also means we don't need the mbDontFlushOnClose flag on SvStream any more. Change-Id: Ibe089b88b325f0fdc565200a97ce72cd26b7fcfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128214 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r--lotuswordpro/source/filter/explode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/explode.cxx b/lotuswordpro/source/filter/explode.cxx
index 4b4ffa25c6cf..a001254d0be4 100644
--- a/lotuswordpro/source/filter/explode.cxx
+++ b/lotuswordpro/source/filter/explode.cxx
@@ -307,7 +307,7 @@ sal_Int32 Decompression::explode()
if (distance > nOutputPos)
return -3; // format error
- m_pOutStream->Flush();
+ m_pOutStream->FlushBuffer();
// point back to copy position and read bytes
m_pOutStream->SeekRel(-static_cast<tools::Long>(distance));
sal_uInt8 sTemp[MAXWIN];