void FGAirportDynamicsXMLLoader::startParking(const XMLAttributes &atts)
{
string type;
- int index;
+ int index = 0;
string gateName, gateNumber;
string lat, lon;
double heading = 0.0;
void FGAirportDynamicsXMLLoader::startNode(const XMLAttributes &atts)
{
- int index;
+ int index = 0;
string lat, lon;
- bool onRunway;
- int holdPointType;
+ bool onRunway = false;
+ int holdPointType = 0;
for (int i = 0; i < atts.size() ; i++)
{
else if (attname == "lon")
lon = atts.getValue(i);
else if (attname == "isOnRunway")
- onRunway = (bool) std::atoi(atts.getValue(i));
+ onRunway = std::atoi(atts.getValue(i)) != 0;
else if (attname == "holdPointType") {
string attval = atts.getValue(i);
if (attval=="none") {
void FGAirportDynamicsXMLLoader::startArc(const XMLAttributes &atts)
{
- int begin, end;
+ int begin = 0, end = 0;
bool isPushBackRoute = false;
for (int i = 0; i < atts.size() ; i++)
else if (attname == "end")
end = std::atoi(atts.getValue(i));
else if (attname == "isPushBackRoute")
- isPushBackRoute = (bool) std::atoi(atts.getValue(i));
+ isPushBackRoute = std::atoi(atts.getValue(i)) != 0;
}
_dynamics->getGroundNetwork()->addSegment(new FGTaxiSegment(begin, end, isPushBackRoute));