X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Curve.cpp;h=9b4f4e26d8e8869945df7aa7a5b24ef34bb93ff5;hb=0448acdd8e8c1e1638a2cf861e42e915966b2034;hp=77bf7d9a2660842d0fee494d689961fbe6b57106;hpb=cc917b5dfaca1fcba1a25c1e54d6bd1ef0b4c057;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Curve.cpp b/src/GeomAPI/GeomAPI_Curve.cpp index 77bf7d9a2..9b4f4e26d 100644 --- a/src/GeomAPI/GeomAPI_Curve.cpp +++ b/src/GeomAPI/GeomAPI_Curve.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAPI_Curve.cpp // Created: 04 Sep 2014 // Author: Mikhail PONIKAROV @@ -19,7 +21,7 @@ GeomAPI_Curve::GeomAPI_Curve() { } -GeomAPI_Curve::GeomAPI_Curve(const boost::shared_ptr& theShape) +GeomAPI_Curve::GeomAPI_Curve(const std::shared_ptr& theShape) : GeomAPI_Interface(new Handle_Geom_Curve()) // initially it is null { const TopoDS_Shape& aShape = theShape->impl(); @@ -28,7 +30,7 @@ GeomAPI_Curve::GeomAPI_Curve(const boost::shared_ptr& theShape) Standard_Real aStart, anEnd; Handle(Geom_Curve) aCurve = BRep_Tool::Curve(anEdge, aStart, anEnd); if (!aCurve.IsNull()) { - setImpl(&aCurve); + setImpl(new Handle(Geom_Curve)(aCurve)); } } }