[Scummvm-cvs-logs] SF.net SVN: scummvm:[53780] scummvm/trunk/engines/saga/saga.h

h00ligan at users.sourceforge.net h00ligan at users.sourceforge.net
Mon Oct 25 00:25:16 CEST 2010


Revision: 53780
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53780&view=rev
Author:   h00ligan
Date:     2010-10-24 22:25:16 +0000 (Sun, 24 Oct 2010)

Log Message:
-----------
SAGA: fix const cast warns

Modified Paths:
--------------
    scummvm/trunk/engines/saga/saga.h

Modified: scummvm/trunk/engines/saga/saga.h
===================================================================
--- scummvm/trunk/engines/saga/saga.h	2010-10-24 22:17:44 UTC (rev 53779)
+++ scummvm/trunk/engines/saga/saga.h	2010-10-24 22:25:16 UTC (rev 53780)
@@ -464,10 +464,14 @@
 	 * 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) {
 		resize(src.size());
 		if (!empty()) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list