mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 18:15:32 +00:00
Added return statements to assert-functions in stream.h
This commit is contained in:
parent
20960ad684
commit
401fa0079c
1 changed files with 3 additions and 3 deletions
|
@ -58,16 +58,16 @@ class Stream
|
|||
/// Return a pointer to the entire stream. This function (and the
|
||||
/// other getPtr() variants below) should only be implemented for
|
||||
/// memory-based streams where using them would be an optimization.
|
||||
virtual const void *getPtr() { assert(0); }
|
||||
virtual const void *getPtr() { assert(0); return NULL; }
|
||||
|
||||
/// Get a pointer to a memory region of 'size' bytes starting from
|
||||
/// position 'pos'
|
||||
virtual const void *getPtr(size_t pos, size_t size) { assert(0); }
|
||||
virtual const void *getPtr(size_t pos, size_t size) { assert(0); return NULL; }
|
||||
|
||||
/// Get a pointer to a memory region of 'size' bytes from the
|
||||
/// current position. Unlike the two other getPtr variants, this
|
||||
/// will advance the position past the returned area.
|
||||
virtual const void *getPtr(size_t size) { assert(0); }
|
||||
virtual const void *getPtr(size_t size) { assert(0); return NULL; }
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<Stream> StreamPtr;
|
||||
|
|
Loading…
Reference in a new issue