diff options
author | Andrew Kurushin | 2010-10-24 22:25:16 +0000 |
---|---|---|
committer | Andrew Kurushin | 2010-10-24 22:25:16 +0000 |
commit | 0f1ae79ac476c7871e91e4e5c01e2bc752c93777 (patch) | |
tree | d84e2409452497129e646dff64f4ea7268b1a184 /engines | |
parent | 67cc1b8a84e8cbc344e87fe0f4715cae96199b69 (diff) | |
download | scummvm-rg350-0f1ae79ac476c7871e91e4e5c01e2bc752c93777.tar.gz scummvm-rg350-0f1ae79ac476c7871e91e4e5c01e2bc752c93777.tar.bz2 scummvm-rg350-0f1ae79ac476c7871e91e4e5c01e2bc752c93777.zip |
SAGA: fix const cast warns
svn-id: r53780
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/saga.h | 8 |
1 files changed, 6 insertions, 2 deletions
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) { |