diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-06-19 15:45:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-19 21:24:00 +0200 |
commit | 5c59e061c6271cfe2f8ec12ba21de50e71bd9ef4 (patch) | |
tree | 011da297c1eb73fe4e375b5f6b2b193cfb7aed79 /tools | |
parent | b85491e40ccb83ff78c7c4b2c0d535eafa5d23ed (diff) |
SvMemoryStream::GetSize can be more efficient
Change-Id: I6d60d6549089e049d730c1000ab7ec592924c685
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117499
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/stream/stream.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 04ddd2cba111..515f3a1657ab 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1673,15 +1673,6 @@ SvMemoryStream::~SvMemoryStream() } } -sal_uInt64 SvMemoryStream::GetSize() -{ - Flush(); - sal_uInt64 const nTemp = Tell(); - sal_uInt64 const nLength = Seek( STREAM_SEEK_TO_END ); - Seek( nTemp ); - return nLength; -} - void SvMemoryStream::SetBuffer( void* pNewBuf, std::size_t nCount, std::size_t nEOF ) { |