summaryrefslogtreecommitdiff
path: root/sw/source/core/doc
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 /sw/source/core/doc
parent952b3b227e02ae4eedce3138fcb39613bf12486d (diff)
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 'sw/source/core/doc')
-rw-r--r--sw/source/core/doc/tblafmt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx
index 6385794aa620..c92cadd49f50 100644
--- a/sw/source/core/doc/tblafmt.cxx
+++ b/sw/source/core/doc/tblafmt.cxx
@@ -1150,7 +1150,7 @@ bool SwTableAutoFormatTable::Save( SvStream& rStream ) const
bRet = rFormat.Save(rStream, AUTOFORMAT_FILE_VERSION);
}
}
- rStream.Flush();
+ rStream.FlushBuffer();
return bRet;
}