]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Opencascade: Bugfix. Call Handle macro in a compatible fashion
authorMatthias Maier <tamiko@43-1.org>
Tue, 21 Mar 2017 18:52:24 +0000 (13:52 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 21 Mar 2017 18:52:24 +0000 (13:52 -0500)
source/opencascade/boundary_lib.cc

index 05f0063dfe1fc06577d006d45829ace20ccf3811..d5661579c4dd19eb0d5db1cbb41081956be74d3c 100644 (file)
@@ -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());
     }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.