From 4303c2b9a604535adb204ac1a8e5736a719b2406 Mon Sep 17 00:00:00 2001 From: fredb Date: Thu, 12 Jan 2006 21:35:08 +0000 Subject: [PATCH] Redundant loop variable declaration --- src/FDM/JSBSim/input_output/FGXMLElement.cpp | 4 ++-- src/FDM/JSBSim/math/FGTable.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FDM/JSBSim/input_output/FGXMLElement.cpp b/src/FDM/JSBSim/input_output/FGXMLElement.cpp index 8b21b0131..4e5d37fb1 100755 --- a/src/FDM/JSBSim/input_output/FGXMLElement.cpp +++ b/src/FDM/JSBSim/input_output/FGXMLElement.cpp @@ -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; iGetNumDataLines(); i++) { + for (i=0; iGetNumDataLines(); i++) { buf << tableData->GetDataLine(i) << string(" "); } switch (dimension) { -- 2.39.5