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>
This commit is contained in:
Noel
2020-12-14 21:14:54 +01:00
committed by Noel Grandin
parent 05ab01898d
commit 0651fa8352
-1
View File
@@ -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;
}