From d497b3141d18b424a36aba4576127145a4b80dd0 Mon Sep 17 00:00:00 2001 From: Pawel Date: Fri, 20 Jul 2012 13:07:26 +0200 Subject: [PATCH] 0023333: The variable 'i' is being used for this loop and for the outer loop in Vrmldata_ShapeConvert.cxx Use separate variable to iterate the inner loop. --- src/VrmlData/VrmlData_ShapeConvert.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/VrmlData/VrmlData_ShapeConvert.cxx b/src/VrmlData/VrmlData_ShapeConvert.cxx index 4c084e7e20..c523c431bc 100755 --- a/src/VrmlData/VrmlData_ShapeConvert.cxx +++ b/src/VrmlData/VrmlData_ShapeConvert.cxx @@ -257,9 +257,9 @@ void VrmlData_ShapeConvert::Convert (const Standard_Boolean theExtractFaces, TColgp_Array1OfPnt arrNodes(1, nbNodes); TColStd_Array1OfReal arrUVNodes(1, nbNodes); - for(i = 1; i <= nbNodes; i++) { - arrUVNodes(i) = aPrs->Value(aPrs->Lower() + i - 1); - arrNodes(i) = aCurve.Value(arrUVNodes(i)); + for(Standard_Integer j = 1; j <= nbNodes; j++) { + arrUVNodes(j) = aPrs->Value(aPrs->Lower() + j - 1); + arrNodes(j) = aCurve.Value(arrUVNodes(j)); } aPol = new Poly_Polygon3D(arrNodes, arrUVNodes); aPol->Deflection (aPT->Deflection()); @@ -276,9 +276,9 @@ void VrmlData_ShapeConvert::Convert (const Standard_Boolean theExtractFaces, TColgp_Array1OfPnt arrNodes(1, nbNodes); TColStd_Array1OfReal arrUVNodes(1, nbNodes); - for (i = 1; i <= nbNodes; i++) { - arrNodes(i) = TD.Value(i); - arrUVNodes(i) = TD.Parameter(i); + for (Standard_Integer j = 1; j <= nbNodes; j++) { + arrNodes(j) = TD.Value(j); + arrUVNodes(j) = TD.Parameter(j); } aPol = new Poly_Polygon3D(arrNodes, arrUVNodes); aPol->Deflection (aDeflection);