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 /svtools | |
parent | ff9f90cf28852703366e853ab7e4f9d5218c8f35 (diff) |
#i105745#: tools/stream.hxx: API change:
make SvMemoryStream::GetSize() private
introduce new public SvMemoryStream::GetEndOfData()
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter.vcl/filter/filter2.cxx | 3 | ||||
-rw-r--r-- | svtools/source/numbers/numhead.cxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/filter.vcl/filter/filter2.cxx b/svtools/source/filter.vcl/filter/filter2.cxx index d570dd34e50f..9e0e3ba43d54 100644 --- a/svtools/source/filter.vcl/filter/filter2.cxx +++ b/svtools/source/filter.vcl/filter/filter2.cxx @@ -471,7 +471,8 @@ BOOL GraphicDescriptor::ImpDetectJPG( SvStream& rStm, BOOL bExtendedInfo ) // Groesse des verbleibenden Puffers ermitteln if ( bLinked ) - nMax = ( (SvMemoryStream&) rStm ).GetSize() - 16; + nMax = static_cast< SvMemoryStream& >(rStm).GetEndOfData() + - 16; else nMax = DATA_SIZE - 16; diff --git a/svtools/source/numbers/numhead.cxx b/svtools/source/numbers/numhead.cxx index 7e79aad624f3..921442de1b66 100644 --- a/svtools/source/numbers/numhead.cxx +++ b/svtools/source/numbers/numhead.cxx @@ -139,7 +139,7 @@ ImpSvNumMultipleReadHeader::ImpSvNumMultipleReadHeader(SvStream& rNewStream) : ImpSvNumMultipleReadHeader::~ImpSvNumMultipleReadHeader() { - DBG_ASSERT( pMemStream->Tell() == pMemStream->GetSize(), + DBG_ASSERT( pMemStream->Tell() == pMemStream->GetEndOfData(), "Sizes nicht vollstaendig gelesen" ); delete pMemStream; delete [] pBuf; |