summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-04 09:15:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-04 15:03:06 +0200
commit1a049bc17c5f5ca524289efb73981292c32c58a1 (patch)
treea81d757bd824f63dda8e6609b2b67c36e2294708 /include/tools
parente607f1da329a2d4dd91904053d7ff86ac05c77bf (diff)
drop SvMemoryStream::GetBuffer
since it does the same thing as GetData() Change-Id: I18d35aa4e67ad7775987160c021863d0de90179b Reviewed-on: https://gerrit.libreoffice.org/61350 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/stream.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index 86a29f8093ff..3793094155d6 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -666,11 +666,11 @@ public:
virtual void ResetError() override;
- const void* GetBuffer();
- sal_uInt64 GetSize();
+ sal_uInt64 GetSize();
std::size_t GetEndOfData() const { return nEndOfData; }
const void* GetData() { Flush(); return pBuf; }
+ // return the buffer currently in use, and allocate a new buffer internally
void* SwitchBuffer();
// the buffer is not owned by this class
void SetBuffer( void* pBuf, std::size_t nSize, std::size_t nEOF );