[Scummvm-cvs-logs] SF.net SVN: scummvm:[43974] scummvm/trunk

tramboi at users.sourceforge.net tramboi at users.sourceforge.net
Sun Sep 6 12:51:20 CEST 2009


Revision: 43974
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43974&view=rev
Author:   tramboi
Date:     2009-09-06 10:51:20 +0000 (Sun, 06 Sep 2009)

Log Message:
-----------
Minor constness fixes

Modified Paths:
--------------
    scummvm/trunk/backends/midi/alsa.cpp
    scummvm/trunk/engines/scumm/smush/smush_font.cpp
    scummvm/trunk/gui/debugger.cpp

Modified: scummvm/trunk/backends/midi/alsa.cpp
===================================================================
--- scummvm/trunk/backends/midi/alsa.cpp	2009-09-06 09:43:06 UTC (rev 43973)
+++ scummvm/trunk/backends/midi/alsa.cpp	2009-09-06 10:51:20 UTC (rev 43974)
@@ -228,10 +228,10 @@
 }
 
 int MidiDriver_ALSA::parse_addr(const char *arg, int *client, int *port) {
-	char *p;
+	const char *p;
 
 	if (isdigit(*arg)) {
-		if ((p = (char *)strpbrk(arg, ADDR_DELIM)) == NULL)
+		if ((p = strpbrk(arg, ADDR_DELIM)) == NULL)
 			return -1;
 		*client = atoi(arg);
 		*port = atoi(p + 1);

Modified: scummvm/trunk/engines/scumm/smush/smush_font.cpp
===================================================================
--- scummvm/trunk/engines/scumm/smush/smush_font.cpp	2009-09-06 09:43:06 UTC (rev 43973)
+++ scummvm/trunk/engines/scumm/smush/smush_font.cpp	2009-09-06 10:51:20 UTC (rev 43974)
@@ -171,7 +171,7 @@
 
 	while (str) {
 		char line[256];
-		char *pos = (char *)strchr(str, '\n');
+		const char *pos = strchr(str, '\n');
 		if (pos) {
 			memcpy(line, str, pos - str - 1);
 			line[pos - str - 1] = 0;

Modified: scummvm/trunk/gui/debugger.cpp
===================================================================
--- scummvm/trunk/gui/debugger.cpp	2009-09-06 09:43:06 UTC (rev 43973)
+++ scummvm/trunk/gui/debugger.cpp	2009-09-06 10:51:20 UTC (rev 43974)
@@ -243,7 +243,7 @@
 					break;
 				// Integer Array
 				case DVAR_INTARRAY: {
-					char *chr = (char *)strchr(param[0], '[');
+					const char *chr = strchr(param[0], '[');
 					if (!chr) {
 						DebugPrintf("You must access this array as %s[element]\n", param[0]);
 					} else {


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