[Gridflow-cvs] [svn] commit: r3738 - in /trunk/format: quicktimehw.c x11.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Jun 2 11:55:33 EDT 2008


Author: matju
Date: Mon Jun  2 11:55:33 2008
New Revision: 3738

Log:
use const_cast<char *>

Modified:
    trunk/format/quicktimehw.c
    trunk/format/x11.c

Modified: trunk/format/quicktimehw.c
==============================================================================
--- trunk/format/quicktimehw.c (original)
+++ trunk/format/quicktimehw.c Mon Jun  2 11:55:33 2008
@@ -122,7 +122,7 @@
 \def 0 parameter (string name, int32 value) {
 	int val = value;
 	//post("quicktime_set_parameter %s %d",name.data(), val);
-	quicktime_set_parameter(anim, (char *)name.data(), &val);
+	quicktime_set_parameter(anim, const_cast<char *>(name.data()), &val);
 	if (name=="jpeg_quality") jpeg_quality=value;
 }
 

Modified: trunk/format/x11.c
==============================================================================
--- trunk/format/x11.c (original)
+++ trunk/format/x11.c Mon Jun  2 11:55:33 2008
@@ -296,7 +296,7 @@
 			if (!kss) return; /* unknown keys ignored */
 			if (isdigit(*kss)) sprintf(buf,"D%s",kss); else strcpy(buf,kss);
 			t_atom at[4];
-			t_symbol *sel = gensym((char *)(e.type==KeyPress ? "keypress" : "keyrelease"));
+			t_symbol *sel = gensym(const_cast<char *>(e.type==KeyPress ? "keypress" : "keyrelease"));
 			SETFLOAT(at+0,ek->y);
 			SETFLOAT(at+1,ek->x);
 			SETFLOAT(at+2,ek->state);



More information about the Gridflow-cvs mailing list