From 94b41f5d2e75b43700902c12ba4fd0fd9426b0e8 Mon Sep 17 00:00:00 2001 From: Yotam Barnoy Date: Tue, 14 Sep 2010 14:57:30 +0000 Subject: COMMON: remove virtual functions from BufferedStreams As Max pointed out to me, they don't work as expected when called from constructors/destructors. svn-id: r52724 --- common/stream.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'common/stream.h') diff --git a/common/stream.h b/common/stream.h index 10cc8c79cd..4e627c2b1d 100644 --- a/common/stream.h +++ b/common/stream.h @@ -497,8 +497,6 @@ protected: bool _eos; // end of stream uint32 _bufSize; uint32 _realBufSize; - void allocBuf(uint32 bufSize); - void deallocBuf(); public: BufferedReadStream(ReadStream *parentStream, uint32 bufSize, DisposeAfterUse::Flag disposeParentStream = DisposeAfterUse::NO); @@ -538,8 +536,6 @@ protected: uint32 _pos; uint32 _bufSize; bool flushBuffer(); // write out the data in the buffer - void allocBuf(uint32 bufSize); - void deallocBuf(); public: BufferedWriteStream(WriteStream *parentStream, uint32 bufSize, DisposeAfterUse::Flag disposeParentStream = DisposeAfterUse::NO); -- cgit v1.2.3