diff options
author | Michael Stahl <mst@openoffice.org> | 2009-11-02 19:08:00 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2009-11-02 19:08:00 +0100 |
commit | b7362dfa446a3876529d7223306675f3b7d371c8 (patch) | |
tree | 447b9deffcd37920a9563f2c542d801ad10a9791 /tools | |
parent | ff9f90cf28852703366e853ab7e4f9d5218c8f35 (diff) |
#i105745#: tools/stream.hxx: API change:
make SvMemoryStream::GetSize() private
introduce new public SvMemoryStream::GetEndOfData()
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/stream.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/inc/tools/stream.hxx b/tools/inc/tools/stream.hxx index bacaac89fe44..23496322fa4c 100644 --- a/tools/inc/tools/stream.hxx +++ b/tools/inc/tools/stream.hxx @@ -776,6 +776,9 @@ class TOOLS_DLLPUBLIC SvMemoryStream : public SvStream SvMemoryStream (const SvMemoryStream&); SvMemoryStream & operator= (const SvMemoryStream&); + friend class SvCacheStream; + sal_Size GetSize() const { return nSize; } + protected: sal_Size nSize; sal_Size nResize; @@ -817,7 +820,7 @@ public: virtual void ResetError(); - sal_Size GetSize() const { return nSize; } + sal_Size GetEndOfData() const { return nEndOfData; } const void* GetData() { Flush(); return pBuf; } operator const void*() { Flush(); return pBuf; } virtual sal_uInt16 IsA() const; |