1
0
Fork 0

Fix a couple compiler warnings.

This commit is contained in:
curt 2003-09-19 20:03:43 +00:00
parent 6e73e7dc08
commit b262586763

View file

@ -40,18 +40,20 @@ SG_USING_STD(vector);
void void
fgDefaultWeatherValue (const char * propname, double value) fgDefaultWeatherValue (const char * propname, double value)
{ {
int i; unsigned int i;
SGPropertyNode * branch = fgGetNode("/environment/config/boundary", true); SGPropertyNode * branch = fgGetNode("/environment/config/boundary", true);
vector<SGPropertyNode_ptr> entries = branch->getChildren("entry"); vector<SGPropertyNode_ptr> entries = branch->getChildren("entry");
for (i = 0; i < entries.size(); i++) for (i = 0; i < entries.size(); i++) {
entries[i]->setDoubleValue(propname, value); entries[i]->setDoubleValue(propname, value);
}
branch = fgGetNode("/environment/config/aloft", true); branch = fgGetNode("/environment/config/aloft", true);
entries = branch->getChildren("entry"); entries = branch->getChildren("entry");
for (i = 0; i < entries.size(); i++) for (i = 0; i < entries.size(); i++) {
entries[i]->setDoubleValue(propname, value); entries[i]->setDoubleValue(propname, value);
} }
}
void void