summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-12-14 14:42:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-14 21:14:54 +0100
commit0651fa8352116a58463c036c196b6caede5c9616 (patch)
treee614727c937ce426b80fb6c9720ed396d52bfabe /tools
parent05ab01898df94390073de819f489ac261d24eaea (diff)
remove Seek(nCurr) in SvStream::remainingSize()
which slows down some operations, and is unnecessary, since TellEnd() already resets the file pointer. Change-Id: I71a0d7f45074039b890997a730afa1cd1c160886 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107689 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/stream.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 8448f5144af9..a7021d2b22aa 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1442,7 +1442,6 @@ sal_uInt64 SvStream::remainingSize()
sal_uInt64 const nCurr = Tell();
sal_uInt64 const nEnd = TellEnd();
sal_uInt64 nMaxAvailable = nEnd > nCurr ? (nEnd-nCurr) : 0;
- Seek(nCurr);
return nMaxAvailable;
}