summaryrefslogtreecommitdiff
path: root/comphelper/source/streaming/memorystream.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-21 12:30:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-22 14:00:31 +0200
commit1d58828f2285064635ed776e0641e83ee26d34da (patch)
treed8bbb109092bcc9654441d094af2ec5a852be7d6 /comphelper/source/streaming/memorystream.cxx
parent671e755aef9c4019bdca2fbbe5e5e6c704954a32 (diff)
[API CHANGE] call ftruncate instead of ftruncate_by_name
The actual point of this change is making osl_fileOpen faster by avoiding constructing and storing an OString. But that requires changing to using ftruncate on the filehandle, which is arguably more correct anyway, using the filename to truncate in the presence of unlink() is dubious Change-Id: I8bc5022e1d1afb53fb4e2fd920e43e5daaf74ec4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134704 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper/source/streaming/memorystream.cxx')
0 files changed, 0 insertions, 0 deletions