0027104: DownCast() cannot return null for mismatched handle
[occt.git] / src / RWStepGeom / RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx
index 35116e3..b155652 100644 (file)
@@ -428,9 +428,7 @@ void RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface::Check
    const Interface_ShareTool& aShto,
    Handle(Interface_Check)& ach) const
 {
-  Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) aRationalBSS =
-    Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface)
-      ::DownCast(ent);
+  Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) aRationalBSS = ent;
   Handle(StepGeom_BSplineSurfaceWithKnots) aBSSWK =
     aRationalBSS->BSplineSurfaceWithKnots();
   RWStepGeom_RWBSplineSurfaceWithKnots t1;