diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-12-16 12:29:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-17 14:02:11 +0100 |
commit | d5b20f44a9911534dd1796d3bfa8cbca4619e075 (patch) | |
tree | 4171127bd7de2790d751eea5a4f7049229fce4a6 /tools/source/stream/stream.cxx | |
parent | 7e691086daca63f8ab3b71bff23d800cfb17c12a (diff) |
simplify checkSeek()
Change-Id: Ie6e016aa9fe630691ed71154489c63a182a3f8cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107827
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools/source/stream/stream.cxx')
-rw-r--r-- | tools/source/stream/stream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index a7021d2b22aa..f807a56cf52f 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1411,7 +1411,7 @@ sal_uInt64 SvStream::Seek(sal_uInt64 const nFilePos) bool checkSeek(SvStream &rSt, sal_uInt64 nOffset) { - const sal_uInt64 nMaxSeek(rSt.Tell() + rSt.remainingSize()); + const sal_uInt64 nMaxSeek = rSt.TellEnd(); return (nOffset <= nMaxSeek && rSt.Seek(nOffset) == nOffset); } |