mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0027104: DownCast() cannot return null for mismatched handle
Method DownCast() is made template, to be available only when argument is actually a pointer or handle to a base class. For compatibility with existing code, method DownCast() that can be used for the same type, derived, or unrelated class (i.e. where there is no actual down casting) is still available, its use shall cause "deprecated" compiler warning. OCCT code is updated to remove meaningless DownCast()s; a few places where DownCast() was used with argument of unrelated type are corrected. DRAW command QAHandleCast is removed (it was useful only during redesign of handles).
This commit is contained in:
@@ -396,7 +396,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
|
||||
// points has less diameter than the tolerance 3D
|
||||
Degenerated = Standard_True;
|
||||
Standard_Real Dist;
|
||||
Handle(Geom_BSplineCurve) BS3d = Handle(Geom_BSplineCurve)::DownCast( appr.Curve3d());
|
||||
Handle(Geom_BSplineCurve) BS3d = appr.Curve3d();
|
||||
gp_Pnt P1(0.,0.,0.),PP; // skl : I change "P" to "PP"
|
||||
Standard_Integer NbPoint,ii ; // skl : I change "i" to "ii"
|
||||
Standard_Real Par,DPar;
|
||||
|
Reference in New Issue
Block a user