From 9f142e599a01eef08c306f2852f5a95d7d6d483f Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 24 Apr 2014 12:51:02 +0400 Subject: [PATCH] std:shared_ptr replaced by boost::shared_ptr --- src/GeomAPI/GeomAPI_Pln.cpp | 12 ++++++------ src/GeomAPI/GeomAPI_Pln.h | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) 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 -- 2.39.2