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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user