From: vsv Date: Thu, 24 Apr 2014 08:51:02 +0000 (+0400) Subject: std:shared_ptr replaced by boost::shared_ptr X-Git-Tag: V_0.2~122^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f142e599a01eef08c306f2852f5a95d7d6d483f;p=modules%2Fshaper.git std:shared_ptr replaced by boost::shared_ptr --- diff --git a/src/GeomAPI/GeomAPI_Pln.cpp b/src/GeomAPI/GeomAPI_Pln.cpp index d6b476cf2..d01803102 100644 --- a/src/GeomAPI/GeomAPI_Pln.cpp +++ b/src/GeomAPI/GeomAPI_Pln.cpp @@ -10,8 +10,8 @@ using namespace std; -GeomAPI_Pln::GeomAPI_Pln(const shared_ptr& thePoint, - const shared_ptr& theNormal) +GeomAPI_Pln::GeomAPI_Pln(const boost::shared_ptr& thePoint, + const boost::shared_ptr& theNormal) : GeomAPI_Interface(new gp_Pln(thePoint->impl(), theNormal->impl())) { @@ -23,14 +23,14 @@ GeomAPI_Pln::GeomAPI_Pln( { } -shared_ptr GeomAPI_Pln::location() +boost::shared_ptr GeomAPI_Pln::location() { gp_Pnt aLoc = impl().Location(); - return shared_ptr(new GeomAPI_Pnt(aLoc.X(), aLoc.Y(), aLoc.Z())); + return boost::shared_ptr(new GeomAPI_Pnt(aLoc.X(), aLoc.Y(), aLoc.Z())); } -shared_ptr GeomAPI_Pln::direction() +boost::shared_ptr GeomAPI_Pln::direction() { const gp_Dir& aDir = impl().Axis().Direction(); - return shared_ptr(new GeomAPI_Dir(aDir.X(), aDir.Y(), aDir.Z())); + return boost::shared_ptr(new GeomAPI_Dir(aDir.X(), aDir.Y(), aDir.Z())); } diff --git a/src/GeomAPI/GeomAPI_Pln.h b/src/GeomAPI/GeomAPI_Pln.h index 49b4a9d5f..0d0208430 100644 --- a/src/GeomAPI/GeomAPI_Pln.h +++ b/src/GeomAPI/GeomAPI_Pln.h @@ -5,7 +5,7 @@ #ifndef GeomAPI_Pln_HeaderFile #define GeomAPI_Pln_HeaderFile -#include +#include #include class GeomAPI_Pnt; @@ -20,17 +20,17 @@ class GEOMAPI_EXPORT GeomAPI_Pln: public GeomAPI_Interface { public: /// Creation of plane by the point and normal - GeomAPI_Pln(const std::shared_ptr& thePoint, - const std::shared_ptr& theNormal); + GeomAPI_Pln(const boost::shared_ptr& thePoint, + const boost::shared_ptr& theNormal); /// Creation of plane by coefficients A * X + B * Y + C * Z + D = 0.0 GeomAPI_Pln(const double theA, const double theB, const double theC, const double theD); /// Returns a point of this plane - std::shared_ptr location(); + boost::shared_ptr location(); /// Returns a plane normal - std::shared_ptr direction(); + boost::shared_ptr direction(); }; #endif