Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:2024:games
toycars
toycars-list.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File toycars-list.patch of Package toycars
Index: toycars_vehicle_editor/src/VehicleObject.cpp =================================================================== --- toycars_vehicle_editor/src/VehicleObject.cpp.orig +++ toycars_vehicle_editor/src/VehicleObject.cpp @@ -152,7 +152,7 @@ void VehicleObject::loadVehicle(const ch 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 @@ void VehicleObject::loadSpriteFromDataDi 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); } Index: toycars_vehicle_editor/src/VehicleEditorUI.cxx =================================================================== --- toycars_vehicle_editor/src/VehicleEditorUI.cxx.orig +++ toycars_vehicle_editor/src/VehicleEditorUI.cxx @@ -228,7 +228,7 @@ char str[64]; 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(); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor