From 401fa0079c9045e4550c05ca342bde8775e39264 Mon Sep 17 00:00:00 2001 From: Nicolay Korslund Date: Thu, 4 Mar 2010 11:12:22 +0100 Subject: [PATCH] Added return statements to assert-functions in stream.h --- stream/stream.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stream/stream.h b/stream/stream.h index 53e662341..acd001d24 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -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 StreamPtr;