0024023: Revamp the OCCT Handle -- downcast (automatic)
[occt.git] / src / AIS / AIS_C0RegularityFilter.cxx
index f22155d..8e2562f 100644 (file)
@@ -80,7 +80,7 @@ Standard_Boolean AIS_C0RegularityFilter::IsOk(const Handle(SelectMgr_EntityOwner
   if (Handle(StdSelect_BRepOwner)::DownCast(EO).IsNull())
     return Standard_False;
 
-  const TopoDS_Shape& aShape = ((Handle(StdSelect_BRepOwner)&)EO)->Shape();
+  const TopoDS_Shape& aShape = Handle(StdSelect_BRepOwner)::DownCast (EO)->Shape();
 
   if(aShape.ShapeType()!= TopAbs_EDGE)
     return Standard_False;