tools/source/stream/stream.cxx | 1 - 1 file changed, 1 deletion(-) New commits: commit 0651fa8352116a58463c036c196b6caede5c9616 Author: Noel <noelgran...@gmail.com> AuthorDate: Mon Dec 14 14:42:19 2020 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Dec 14 21:14:54 2020 +0100
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.gran...@collabora.co.uk> 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits