[Libreoffice-commits] core.git: tools/source
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Mon Dec 14 20:15:34 UTC 2020
tools/source/stream/stream.cxx | 1 -
1 file changed, 1 deletion(-)
New commits:
commit 0651fa8352116a58463c036c196b6caede5c9616
Author: Noel <noelgrandin at gmail.com>
AuthorDate: Mon Dec 14 14:42:19 2020 +0200
Commit: Noel Grandin <noel.grandin at 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.grandin at 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;
}
More information about the Libreoffice-commits
mailing list