From fbc257c9a2020751400a0570825d91d3d7e9c1f1 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 14 Nov 2005 16:29:48 +0000 Subject: [PATCH] standards unconformant C++ compilers (such as msvs 6.0) dont like two for loops with the same varaible name in the same scope --- src/gdd/dbMapper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gdd/dbMapper.cc b/src/gdd/dbMapper.cc index ea1c291aa..8b9c14556 100644 --- a/src/gdd/dbMapper.cc +++ b/src/gdd/dbMapper.cc @@ -1105,8 +1105,8 @@ static int mapGraphicGddToEnum ( enumStringTable.getString ( i, &(db->strs[i][0]), MAX_ENUM_STRING_SIZE ); } - for ( int i = db->no_str; i < MAX_ENUM_STATES; i++ ) { - db->strs[i][0] = '\0'; + for ( int j = db->no_str; j < MAX_ENUM_STATES; j++ ) { + db->strs[j][0] = '\0'; } return mapGddToEnum ( &db->value, count, vdd, enumStringTable );