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:
@@ -161,9 +161,9 @@ static Standard_Integer PointsByPick
|
||||
AppDef_MultiPointConstraint mpc(1,0);
|
||||
MPC->ChangeArray1().Init(mpc);
|
||||
for (i=1; i<=ThePoints.Length(); i++) {
|
||||
AppDef_MultiPointConstraint mpc(1,0);
|
||||
mpc.SetPoint(1, ThePoints.Value(i));
|
||||
MPC->SetValue(i, mpc);
|
||||
AppDef_MultiPointConstraint aLocalMpc(1,0);
|
||||
aLocalMpc.SetPoint(1, ThePoints.Value(i));
|
||||
MPC->SetValue(i, aLocalMpc);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -921,15 +921,15 @@ static Standard_Integer cfindp (Draw_Interpretor& , Standard_Integer n, const ch
|
||||
if (!DBs.IsNull())
|
||||
DBs->FindPole( x, y, d, 5, Index);
|
||||
else {
|
||||
Handle(DrawTrSurf_BezierCurve2d) DBz =
|
||||
Handle(DrawTrSurf_BezierCurve2d) DBz2d =
|
||||
Handle(DrawTrSurf_BezierCurve2d)::DownCast(D);
|
||||
if( !DBz.IsNull())
|
||||
DBz->FindPole( x, y, d, 5, Index);
|
||||
if( !DBz2d.IsNull())
|
||||
DBz2d->FindPole( x, y, d, 5, Index);
|
||||
else {
|
||||
Handle(DrawTrSurf_BSplineCurve2d) DBs =
|
||||
Handle(DrawTrSurf_BSplineCurve2d) DBs2d =
|
||||
Handle(DrawTrSurf_BSplineCurve2d)::DownCast(D);
|
||||
if (!DBs.IsNull())
|
||||
DBs->FindPole( x, y, d, 5, Index);
|
||||
if (!DBs2d.IsNull())
|
||||
DBs2d->FindPole( x, y, d, 5, Index);
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user