From fa9b6e81bc07513a49a14d74490b24e56d985620 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 21 Mar 2017 13:52:24 -0500 Subject: [PATCH] Opencascade: Bugfix. Call Handle macro in a compatible fashion --- source/opencascade/boundary_lib.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/opencascade/boundary_lib.cc b/source/opencascade/boundary_lib.cc index 05f0063dfe..d5661579c4 100644 --- a/source/opencascade/boundary_lib.cc +++ b/source/opencascade/boundary_lib.cc @@ -59,12 +59,12 @@ namespace OpenCASCADE (shape.ShapeType() == TopAbs_EDGE), ExcUnsupportedShape()); if (shape.ShapeType() == TopAbs_WIRE) - return (Handle(BRepAdaptor_HCompCurve(new BRepAdaptor_HCompCurve(TopoDS::Wire(shape))))); + return Handle(BRepAdaptor_HCompCurve)(new BRepAdaptor_HCompCurve(TopoDS::Wire(shape))); else if (shape.ShapeType() == TopAbs_EDGE) - return (Handle(BRepAdaptor_HCurve(new BRepAdaptor_HCurve(TopoDS::Edge(shape))))); + return Handle(BRepAdaptor_HCurve)(new BRepAdaptor_HCurve(TopoDS::Edge(shape))); Assert(false, ExcInternalError()); - return Handle(BRepAdaptor_HCurve(new BRepAdaptor_HCurve())); + return Handle(BRepAdaptor_HCurve)(new BRepAdaptor_HCurve()); } -- 2.39.5