diff options
-rw-r--r-- | include/tools/stream.hxx | 2 | ||||
-rw-r--r-- | tools/source/stream/stream.cxx | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx index b55a45ff3022..f99b09955368 100644 --- a/include/tools/stream.hxx +++ b/include/tools/stream.hxx @@ -658,7 +658,7 @@ public: virtual void ResetError() override; - sal_uInt64 GetSize(); + sal_uInt64 GetSize() { return TellEnd(); } std::size_t GetEndOfData() const { return nEndOfData; } const void* GetData() { Flush(); return pBuf; } 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 ) { |