mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -718,10 +718,10 @@ void BRepOffsetAPI_DraftAngle::CorrectWires()
|
||||
if (Abs(fpar-Seq2(j)) <= Precision::Confusion())
|
||||
break;
|
||||
NewE.Orientation( TopAbs_FORWARD );
|
||||
TopoDS_Shape aLocalShape = SeqVer(j).Oriented(TopAbs_FORWARD);
|
||||
BB.Add( NewE, TopoDS::Vertex( aLocalShape ) );
|
||||
aLocalShape = SeqVer(j+1).Oriented(TopAbs_REVERSED);
|
||||
BB.Add( NewE, TopoDS::Vertex( aLocalShape ) );
|
||||
TopoDS_Shape aLocalShapeCur = SeqVer(j).Oriented(TopAbs_FORWARD);
|
||||
BB.Add( NewE, TopoDS::Vertex( aLocalShapeCur) );
|
||||
aLocalShapeCur = SeqVer(j+1).Oriented(TopAbs_REVERSED);
|
||||
BB.Add( NewE, TopoDS::Vertex( aLocalShapeCur ) );
|
||||
//BB.Add( NewE, TopoDS::Vertex( SeqVer(j).Oriented(TopAbs_FORWARD) ) );
|
||||
//BB.Add( NewE, TopoDS::Vertex( SeqVer(j+1).Oriented(TopAbs_REVERSED) ) );
|
||||
NewEdges.Append( NewE );
|
||||
|
@@ -804,7 +804,6 @@ void BRepOffsetAPI_ThruSections::CreateSmoothed()
|
||||
if (vClosed) {
|
||||
|
||||
TopoDS_Solid solid;
|
||||
BRep_Builder B;
|
||||
B.MakeSolid(solid);
|
||||
B.Add(solid, shell);
|
||||
|
||||
@@ -889,8 +888,8 @@ static Handle(Geom_BSplineCurve) EdgeToBSpline (const TopoDS_Edge& theEdge)
|
||||
// special treatment of conic curve
|
||||
if (aTrimCurve->BasisCurve()->IsKind(STANDARD_TYPE(Geom_Conic)))
|
||||
{
|
||||
const Handle(Geom_Curve)& aCurve = aTrimCurve; // to avoid ambiguity
|
||||
GeomConvert_ApproxCurve anAppr (aCurve, Precision::Confusion(), GeomAbs_C1, 16, 14);
|
||||
const Handle(Geom_Curve)& aCurveTrimmed = aTrimCurve; // to avoid ambiguity
|
||||
GeomConvert_ApproxCurve anAppr (aCurveTrimmed, Precision::Confusion(), GeomAbs_C1, 16, 14);
|
||||
if (anAppr.HasResult())
|
||||
aBSCurve = anAppr.Curve();
|
||||
}
|
||||
@@ -937,7 +936,6 @@ Handle(Geom_BSplineSurface) BRepOffsetAPI_ThruSections::
|
||||
Handle(Geom_BSplineSurface) surface;
|
||||
Handle(Geom_BSplineCurve) BS, BS1;
|
||||
Handle(Geom_TrimmedCurve) curvTrim;
|
||||
Handle(Geom_BSplineCurve) curvBS;
|
||||
|
||||
if (w1Point) {
|
||||
jdeb++;
|
||||
|
Reference in New Issue
Block a user