1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0026586: Eliminate compile warnings obtained by building occt with vc14: declaration of local variable hides previous local declaration

Eliminated warnings about "declaration of some local variable hides previous local declaration"
This commit is contained in:
ski
2015-09-08 15:41:26 +03:00
committed by bugmaster
parent 695c6eed26
commit 5174095875
186 changed files with 1382 additions and 1466 deletions

View File

@@ -669,7 +669,7 @@ void IntPolyh_MaillageAffinage::FillArrayOfEdges
PntInit=NbSamplesV+1;
//To provide recursion I associate a point with three edges
for(Standard_Integer BoucleMeshU=1; BoucleMeshU<NbSamplesU-1; BoucleMeshU++){
for(Standard_Integer BoucleMeshV=1; BoucleMeshV<NbSamplesV-1;BoucleMeshV++){
for(BoucleMeshV=1; BoucleMeshV<NbSamplesV-1;BoucleMeshV++){
TEdges[CpteurTabEdges].SetFirstPoint(PntInit); // U V
TEdges[CpteurTabEdges].SetSecondPoint(PntInit+1); // U V+1
TEdges[CpteurTabEdges].SetFirstTriangle((NbSamplesV-1)*2*(BoucleMeshU-1)+BoucleMeshV*2+1);
@@ -1057,7 +1057,6 @@ void IntPolyh_MaillageAffinage::TrianglesDeflectionsRefinementBSB()
//The criterion of refining for surface2 depends on the size of Be1
//As it is known that this criterion should be minimized,
//the smallest side of the bounding box is taken
Standard_Real x0,x1,y0,y1,z0,z1;
MyBox1.Get(x0,y0,z0,x1,y1,z1);
Standard_Real dx=Abs(x1-x0);
Standard_Real dy=Abs(y1-y0);
@@ -1201,7 +1200,6 @@ void IntPolyh_MaillageAffinage::TrianglesDeflectionsRefinementBSB()
//The criterion of refining for surface1 depends on the size of Be2
//As this criterion should be minimized,
//the smallest side of the bounding box is taken
Standard_Real x0,x1,y0,y1,z0,z1;
MyBox2.Get(x0,y0,z0,x1,y1,z1);
Standard_Real dx=Abs(x1-x0);
Standard_Real dy=Abs(y1-y0);

View File

@@ -379,8 +379,8 @@ void IntPolyh_Triangle::TriangleDeflection(const Handle(Adaptor3d_HSurface)& MyS
Milieu.Middle( MySurface,P3, P1);
gp_Pnt PtXYZ = (MySurface)->Value( Milieu.U(), Milieu.V());
IntPolyh_Point MilieuReel(PtXYZ.X(), PtXYZ.Y(), PtXYZ.Z(), Milieu.U(), Milieu.V());
gp_Pnt PtXYZMilieu = (MySurface)->Value( Milieu.U(), Milieu.V());
IntPolyh_Point MilieuReel(PtXYZMilieu.X(), PtXYZMilieu.Y(), PtXYZMilieu.Z(), Milieu.U(), Milieu.V());
Fleche = sqrt(Milieu.SquareDistance(MilieuReel));
}
}