From: Pawel Date: Fri, 20 Jul 2012 11:07:26 +0000 (+0200) Subject: 0023333: The variable 'i' is being used for this loop and for the outer loop in Vrmld... X-Git-Tag: V6_5_4_beta1~95 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=d497b3141d18b424a36aba4576127145a4b80dd0;p=occt-copy.git 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. --- 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);