From: Matthias Maier Date: Tue, 21 Mar 2017 18:52:24 +0000 (-0500) Subject: Opencascade: Bugfix. Call Handle macro in a compatible fashion X-Git-Tag: v8.5.0-rc1~20^2~7 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa9b6e81bc07513a49a14d74490b24e56d985620;p=dealii.git Opencascade: Bugfix. Call Handle macro in a compatible fashion --- 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()); }