Redundant loop variable declaration
This commit is contained in:
parent
5d5a58de80
commit
4303c2b9a6
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue