1 |
mr_bones_ 10/04/29 15:45:28 |
2 |
|
3 |
Added: toycars-0.3.10-gcc45.patch |
4 |
Log: |
5 |
improve use flag deps; add gcc45 patch from Kacper Kowalik (Xarthisius) via bug #317751 |
6 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 games-sports/toycars/files/toycars-0.3.10-gcc45.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-sports/toycars/files/toycars-0.3.10-gcc45.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-sports/toycars/files/toycars-0.3.10-gcc45.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: toycars-0.3.10-gcc45.patch |
15 |
=================================================================== |
16 |
Fixing compilation with gcc-4.5 |
17 |
|
18 |
http://bugs.gentoo.org/show_bug.cgi?id=317751 |
19 |
|
20 |
Patch written by Kacper Kowalik <xarthisius.kk@×××××.com> |
21 |
|
22 |
--- toycars_vehicle_editor/src/VehicleEditorUI.cxx |
23 |
+++ toycars_vehicle_editor/src/VehicleEditorUI.cxx |
24 |
@@ -228,7 +228,7 @@ |
25 |
sprintf(str, "%d", n); |
26 |
convexChoice->add(str); |
27 |
convexChoice->value(n); |
28 |
-vehicleObj.getGeometry()->push_back(std::list<Vec2D>::list()); |
29 |
+vehicleObj.getGeometry()->push_back(std::list<Vec2D>()); |
30 |
spriteView->setConvexChoice(n); |
31 |
spriteView->redraw(); |
32 |
} |
33 |
--- toycars_vehicle_editor/src/VehicleObject.cpp |
34 |
+++ toycars_vehicle_editor/src/VehicleObject.cpp |
35 |
@@ -152,7 +152,7 @@ |
36 |
short count; |
37 |
geometry.clear(); |
38 |
for (xConvex = xGeometry->FirstChild(); xConvex != NULL; xConvex = xConvex->NextSibling("convex")) { |
39 |
- geometry.push_back(std::list<Vec2D>::list()); |
40 |
+ geometry.push_back(std::list<Vec2D>()); |
41 |
std::list<Vec2D> &convex = geometry.back(); |
42 |
readPointsFromString(xConvex->FirstChild()->ToText()->Value(), convex, count); |
43 |
} |
44 |
@@ -411,7 +411,7 @@ |
45 |
short count; |
46 |
geometry.clear(); |
47 |
for (xConvex = xGeometry->FirstChild(); xConvex != NULL; xConvex = xConvex->NextSibling("convex")) { |
48 |
- geometry.push_back(std::list<Vec2D>::list()); |
49 |
+ geometry.push_back(std::list<Vec2D>()); |
50 |
std::list<Vec2D> &convex = geometry.back(); |
51 |
readPointsFromString(xConvex->FirstChild()->ToText()->Value(), convex, count); |
52 |
} |