From 0f1ae79ac476c7871e91e4e5c01e2bc752c93777 Mon Sep 17 00:00:00 2001 From: Andrew Kurushin Date: Sun, 24 Oct 2010 22:25:16 +0000 Subject: SAGA: fix const cast warns svn-id: r53780 --- engines/saga/saga.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines/saga') diff --git a/engines/saga/saga.h b/engines/saga/saga.h index 1db003d4a3..8eb4833278 100644 --- a/engines/saga/saga.h +++ b/engines/saga/saga.h @@ -464,8 +464,12 @@ public: * Return a pointer to the start of the buffer underlying this byte array, * or NULL if the buffer is empty. */ - byte *getBuffer() const { - return empty() ? NULL : (byte *)&front(); + byte *getBuffer() { + return empty() ? NULL : &front(); + } + + const byte *getBuffer() const { + return empty() ? NULL : &front(); } void assign(const ByteArray &src) { -- cgit v1.2.3