]> git.mxchange.org Git - flightgear.git/commitdiff
Redundant loop variable declaration
authorfredb <fredb>
Thu, 12 Jan 2006 21:35:08 +0000 (21:35 +0000)
committerfredb <fredb>
Thu, 12 Jan 2006 21:35:08 +0000 (21:35 +0000)
src/FDM/JSBSim/input_output/FGXMLElement.cpp
src/FDM/JSBSim/math/FGTable.cpp

index 8b21b013179726c95e07fde16e866fd206fdc06a..4e5d37fb1fd1eb63f6c0bf4cdaabe7ec2c56964b 100755 (executable)
@@ -380,9 +380,9 @@ void Element::Print(int level)
   int i, spaces;
 
   level+=2;
-  for (int spaces=0; spaces<=level; spaces++) cout << " "; // format output
+  for (spaces=0; spaces<=level; spaces++) cout << " "; // format output
   cout << "Element Name: " << name;
-  for (int i=0; i<attributes.size(); i++) {
+  for (i=0; i<attributes.size(); i++) {
     cout << "  " << attribute_key[i] << " = " << attributes[attribute_key[i]];
   }
   cout << endl;
index b5d6019fea8311cf34d34635e43724cbcc6c3056..302dd90db7a7215ceba49cadc7f52efd9f1891e2 100644 (file)
@@ -195,7 +195,7 @@ FGTable::FGTable(FGPropertyManager* propMan, Element* el) : PropertyManager(prop
   // end lookup property code
 
   tableData = el->FindElement("tableData");
-  for (int i=0; i<tableData->GetNumDataLines(); i++) {
+  for (i=0; i<tableData->GetNumDataLines(); i++) {
     buf << tableData->GetDataLine(i) << string(" ");
   }
   switch (dimension) {