summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-06-19 13:52:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-19 18:13:52 +0200
commit7af0f1514407660a43cde90320bbe00c36c3be28 (patch)
treefbcf41d83527196920ca0a6daeffb2bce36f20cc /tools
parent8fa14ac550ddc43790b65858f18d23f522aff1f2 (diff)
use more TellEnd()
which has the potential to be more efficient than STREAM_SEEK_TO_END Change-Id: I64d84632bc4751e07309332c9dff7a02bcd507fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117496 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/stream.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 7ea8b205ff5b..04ddd2cba111 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -254,11 +254,7 @@ ErrCode SvLockBytes::Stat(SvLockBytesStat * pStat) const
}
if (pStat)
- {
- sal_uInt64 const nPos = m_pStream->Tell();
- pStat->nSize = m_pStream->Seek(STREAM_SEEK_TO_END);
- m_pStream->Seek(nPos);
- }
+ pStat->nSize = m_pStream->TellEnd();
return ERRCODE_NONE;
}