summaryrefslogtreecommitdiff
path: root/include/tools/stream.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/stream.hxx')
-rw-r--r--include/tools/stream.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index 4da1d2e0adb7..c627ed494998 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -272,9 +272,9 @@ public:
sal_uInt64 Seek( sal_uInt64 nPos );
sal_uInt64 SeekRel( sal_Int64 nPos );
sal_uInt64 Tell() const { return m_nBufFilePos + m_nBufActualPos; }
- sal_uInt64 TellEnd();
+ virtual sal_uInt64 TellEnd();
// length between current (Tell()) pos and end of stream
- virtual sal_uInt64 remainingSize();
+ sal_uInt64 remainingSize();
void Flush();
// next Tell() <= nSize
bool SetStreamSize( sal_uInt64 nSize );
@@ -669,7 +669,7 @@ public:
void ObjectOwnsMemory( bool bOwn ) { bOwnsData = bOwn; }
void SetResizeOffset( std::size_t nNewResize ) { nResize = nNewResize; }
- virtual sal_uInt64 remainingSize() override { FlushBuffer(true); return GetEndOfData() - Tell(); }
+ virtual sal_uInt64 TellEnd() override { FlushBuffer(true); return nEndOfData; }
};
#endif