From 414b4ada111377b16f4f4ca1f8d8d9e09c4664ce Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 9 Jun 2003 08:44:59 +0000 Subject: [PATCH] Irix/MipsPro compiler fixes --- src/Environment/environment_ctrl.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Environment/environment_ctrl.cxx b/src/Environment/environment_ctrl.cxx index 97e3369c9..940abce0d 100644 --- a/src/Environment/environment_ctrl.cxx +++ b/src/Environment/environment_ctrl.cxx @@ -27,6 +27,8 @@ #include "environment_ctrl.hxx" +SG_USING_STD(sort); + //////////////////////////////////////////////////////////////////////// @@ -168,9 +170,10 @@ FGInterpolateEnvironmentCtrl::FGInterpolateEnvironmentCtrl () FGInterpolateEnvironmentCtrl::~FGInterpolateEnvironmentCtrl () { - for (int i = 0; i < _boundary_table.size(); i++) + int i; + for (i = 0; i < _boundary_table.size(); i++) delete _boundary_table[i]; - for (int i = 0; i < _aloft_table.size(); i++) + for (i = 0; i < _aloft_table.size(); i++) delete _aloft_table[i]; } @@ -188,9 +191,10 @@ FGInterpolateEnvironmentCtrl::init () void FGInterpolateEnvironmentCtrl::reinit () { - for (int i = 0; i < _boundary_table.size(); i++) + int i; + for (i = 0; i < _boundary_table.size(); i++) delete _boundary_table[i]; - for (int i = 0; i < _aloft_table.size(); i++) + for (i = 0; i < _aloft_table.size(); i++) delete _aloft_table[i]; _boundary_table.clear(); _aloft_table.clear();