1 diff -U 3 -H -d -r -N -- toycars-0.3.10/toycars_track_editor/src/TrackView.cxx toycars-0.3.10.ok/toycars_track_editor/src/TrackView.cxx
2 --- toycars-0.3.10/toycars_track_editor/src/TrackView.cxx 2009-06-27 23:13:24.000000000 -0400
3 +++ toycars-0.3.10.ok/toycars_track_editor/src/TrackView.cxx 2009-07-19 13:28:39.000000000 -0400
5 //{jpg,png,bmp,pnm,pbm,pgm,ppm}
6 Fl_Image* loadImage(const char *filename)
8 - char *suffix = strrchr(filename, '.');
9 + char *suffix = const_cast<char*>(strrchr(filename, '.'));
13 if (strcmp(suffix,".jpg") == 0)
17 // chop off any .xml suffix
18 - temp = strrchr(name, '.');
19 + temp = const_cast<char*>(strrchr(name, '.'));
21 if (strcmp(temp, ".xml") == 0)
25 - temp = strrchr(name, '/');
26 + temp = const_cast<char*>(strrchr(name, '/'));
28 strncpy(trackname, temp+1, 255);
30 @@ -1044,13 +1045,13 @@
33 // chop off any .xml suffix
34 - temp = strrchr(name, '.');
35 + temp = const_cast<char*>(strrchr(name, '.'));
37 if (strcmp(temp, ".xml") == 0)
41 - temp = strrchr(name, '/');
42 + temp = const_cast<char*>(strrchr(name, '/'));
44 strncpy(trackname, temp+1, 255);
46 diff -U 3 -H -d -r -N -- toycars-0.3.10/toycars_vehicle_editor/src/LoadSpriteFromImage.cpp toycars-0.3.10.ok/toycars_vehicle_editor/src/LoadSpriteFromImage.cpp
47 --- toycars-0.3.10/toycars_vehicle_editor/src/LoadSpriteFromImage.cpp 2009-02-26 14:24:22.000000000 -0500
48 +++ toycars-0.3.10.ok/toycars_vehicle_editor/src/LoadSpriteFromImage.cpp 2009-07-19 13:32:35.000000000 -0400
50 //{jpg,png,bmp,pnm,pbm,pgm,ppm}
51 Fl_Image* loadImage(const char *filename)
53 - char *suffix = strrchr(filename, '.');
54 + char *suffix = const_cast<char*>(strrchr(filename, '.'));
58 if (strcmp(suffix,".jpg") == 0)
59 diff -U 3 -H -d -r -N -- toycars-0.3.10/toycars_vehicle_editor/src/VehicleObject.cpp toycars-0.3.10.ok/toycars_vehicle_editor/src/VehicleObject.cpp
60 --- toycars-0.3.10/toycars_vehicle_editor/src/VehicleObject.cpp 2009-03-22 15:45:31.000000000 -0400
61 +++ toycars-0.3.10.ok/toycars_vehicle_editor/src/VehicleObject.cpp 2009-07-19 13:32:28.000000000 -0400
63 uninstallVehicle(name);
65 // chop off any .xml suffix
66 - temp = strrchr(name, '.');
67 + temp = const_cast<char*>(strrchr(name, '.'));
69 if (strcmp(temp, ".xml") == 0)
73 - temp = strrchr(name, '/');
74 + temp = const_cast<char*>(strrchr(name, '/'));
76 strncpy(carname, temp+1, 255);
81 // chop off any .xml suffix
82 - temp = strrchr(name, '.');
83 + temp = const_cast<char*>(strrchr(name, '.'));
85 if (strcmp(temp, ".xml") == 0)
89 - temp = strrchr(name, '/');
90 + temp = const_cast<char*>(strrchr(name, '/'));
92 strncpy(carname, temp+1, 255);
99 \ No newline at end of file