mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +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:
@@ -173,12 +173,12 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
|
||||
if ( ! myMap(S).IsNull() )
|
||||
myMap(S)->SetFailStatus(S);
|
||||
|
||||
Handle(BRepCheck_Result) aRes = myMap(aVertex);
|
||||
Handle(BRepCheck_Result) aResOfVertex = myMap(aVertex);
|
||||
|
||||
if ( ! aRes.IsNull() )
|
||||
if ( !aResOfVertex.IsNull() )
|
||||
{
|
||||
aRes->SetFailStatus(aVertex);
|
||||
aRes->SetFailStatus(S);
|
||||
aResOfVertex->SetFailStatus(aVertex);
|
||||
aResOfVertex->SetFailStatus(S);
|
||||
}
|
||||
}//catch(Standard_Failure)
|
||||
}//for (exp.Init(S,TopAbs_VERTEX);exp.More(); exp.Next())
|
||||
|
@@ -616,9 +616,9 @@ BRepCheck_Status BRepCheck_Edge::
|
||||
{
|
||||
const Standard_Real aParam = aPOnTriag->Parameters()->Value(i);
|
||||
const gp_Pnt aPE(aBC.Value(aParam)),
|
||||
aPT(Nodes(anIndices(i)).Transformed(aLL));
|
||||
aPnt(Nodes(anIndices(i)).Transformed(aLL));
|
||||
|
||||
const Standard_Real aSQDist = aPE.SquareDistance(aPT);
|
||||
const Standard_Real aSQDist = aPE.SquareDistance(aPnt);
|
||||
if(aSQDist > aTol*aTol)
|
||||
{
|
||||
return BRepCheck_InvalidPolygonOnTriangulation;
|
||||
|
@@ -598,8 +598,8 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
|
||||
}
|
||||
|
||||
//JR/Hp :
|
||||
Standard_Integer iorf = MapOfShapeOrientation.Find(Fcur) ;
|
||||
orf = (TopAbs_Orientation) iorf ;
|
||||
Standard_Integer anOriFCur = MapOfShapeOrientation.Find(Fcur) ;
|
||||
orf = (TopAbs_Orientation)anOriFCur;
|
||||
// orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur);
|
||||
Fcur.Orientation(orf);
|
||||
|
||||
@@ -757,8 +757,8 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
|
||||
}
|
||||
|
||||
//JR/Hp :
|
||||
Standard_Integer iorf = MapOfShapeOrientation.Find(Fcur) ;
|
||||
orf = (TopAbs_Orientation) iorf ;
|
||||
Standard_Integer anOriFCur = MapOfShapeOrientation.Find(Fcur) ;
|
||||
orf = (TopAbs_Orientation)anOriFCur;
|
||||
// orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur);
|
||||
Fcur.Orientation(orf);
|
||||
|
||||
|
Reference in New Issue
Block a user