1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0027247: Eliminate remaining compiler warnings in MFC samples and with OCCT_DEBUG

Unsafe and useless casts of handles are eliminated
This commit is contained in:
abv
2016-03-11 07:23:55 +03:00
parent d8d342451d
commit e91fd0250d
10 changed files with 31 additions and 31 deletions

View File

@@ -135,9 +135,9 @@ void Convert_Presentation::drawCurveAndItsBSpline(Handle(Geom_Curve) theCurve,
if (WAIT_A_LITTLE) return;
Handle(Geom_BSplineCurve) aBSpline = GeomConvert::CurveToBSplineCurve(theCurve);
Handle(Geom_Curve) aBSpline = GeomConvert::CurveToBSplineCurve(theCurve);
drawCurve (Handle(Geom_Curve)::DownCast(aBSpline), BSplineColor);
drawCurve (aBSpline, BSplineColor);
}
@@ -367,8 +367,8 @@ void Convert_Presentation::sampleRevolSurface()
aPoles(3) = gp_Pnt(350, 150, 0); aWeights(3) =120;
aPoles(4) = gp_Pnt(500, 500, 0); aWeights(4) = 1;
Handle(Geom_BezierCurve) aBezierCurve = new Geom_BezierCurve(aPoles, aWeights);
drawCurve(Handle(Geom_Curve)::DownCast(aBezierCurve));
Handle(Geom_Curve) aBezierCurve = new Geom_BezierCurve(aPoles, aWeights);
drawCurve(aBezierCurve);
// creating a surface of revolution of the bezier curve around Y axis
gp_Ax1 anAx(gp_Pnt(0,0,0), gp_Dir(0,1,0));