summaryrefslogtreecommitdiff
blob: 0e4f350a89dd943145769f0c50f8dbdf825e3db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Fixing compilation with gcc-4.5

http://bugs.gentoo.org/show_bug.cgi?id=317751

Patch written by Kacper Kowalik <xarthisius.kk@gmail.com>

--- toycars_vehicle_editor/src/VehicleEditorUI.cxx
+++ toycars_vehicle_editor/src/VehicleEditorUI.cxx
@@ -228,7 +228,7 @@
 sprintf(str, "%d", n);
 convexChoice->add(str);
 convexChoice->value(n);
-vehicleObj.getGeometry()->push_back(std::list<Vec2D>::list());
+vehicleObj.getGeometry()->push_back(std::list<Vec2D>());
 spriteView->setConvexChoice(n);
 spriteView->redraw();
 }
--- toycars_vehicle_editor/src/VehicleObject.cpp
+++ toycars_vehicle_editor/src/VehicleObject.cpp
@@ -152,7 +152,7 @@
    short count;
    geometry.clear();
    for (xConvex = xGeometry->FirstChild(); xConvex != NULL; xConvex = xConvex->NextSibling("convex")) {
-      geometry.push_back(std::list<Vec2D>::list());
+      geometry.push_back(std::list<Vec2D>());
       std::list<Vec2D> &convex = geometry.back();
       readPointsFromString(xConvex->FirstChild()->ToText()->Value(), convex, count);
    }
@@ -411,7 +411,7 @@
    short count;
    geometry.clear();
    for (xConvex = xGeometry->FirstChild(); xConvex != NULL; xConvex = xConvex->NextSibling("convex")) {
-      geometry.push_back(std::list<Vec2D>::list());
+      geometry.push_back(std::list<Vec2D>());
       std::list<Vec2D> &convex = geometry.back();
       readPointsFromString(xConvex->FirstChild()->ToText()->Value(), convex, count);
    }