]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/inst_vertical_speed_indicator.cxx
- Code cleanups.
[flightgear.git] / src / Instrumentation / inst_vertical_speed_indicator.cxx
index 81c746306e367ab26b56a9f77378fd6fa6bafb72..134e853ab5ee170ccefa32c56a8e6aee34a741d7 100644 (file)
@@ -17,7 +17,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 
 #include <simgear/math/interpolater.hxx>
@@ -133,17 +133,17 @@ static double altitude_data[][2] = {
 InstVerticalSpeedIndicator::InstVerticalSpeedIndicator ( SGPropertyNode *node ) :
                             _internal_pressure_inhg( SEA_LEVEL_INHG ),
                            _internal_sea_inhg( SEA_LEVEL_INHG ),
+                           _speed_ft_per_s( 0 ),
                            _pressure_table(new SGInterpTable),
-                            _altitude_table(new SGInterpTable),
-                           _speed_ft_per_s( 0 )
+                            _altitude_table(new SGInterpTable)
 {
-    for (int i = 0; pressure_data[i][0] != -1; i++)
+    int i;
+    for ( i = 0; pressure_data[i][0] != -1; i++)
         _pressure_table->addEntry( pressure_data[i][0], pressure_data[i][1] );
 
-    for (int i = 0; altitude_data[i][0] != -1; i++)
+    for ( i = 0; altitude_data[i][0] != -1; i++)
         _altitude_table->addEntry( altitude_data[i][0], altitude_data[i][1] );
 
-    int i;
     for ( i = 0; i < node->nChildren(); ++i ) {
         SGPropertyNode *child = node->getChild(i);
         string cname = child->getName();