]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Tools.cpp
Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.cpp
index d765e77026544c089a45c76f28e4e2295b970c28..8f91a914a817017d52e46bd453eba7a8627e1d47 100644 (file)
@@ -9,22 +9,22 @@
 
 namespace ModelAPI_Tools {
 
-  boost::shared_ptr<GeomAPI_Shape> shape(const ResultPtr& theResult)
+  std::shared_ptr<GeomAPI_Shape> shape(const ResultPtr& theResult)
   {
 /*
-    ResultBodyPtr aBody = boost::dynamic_pointer_cast<ModelAPI_ResultBody>(theResult);
+    ResultBodyPtr aBody = std::dynamic_pointer_cast<ModelAPI_ResultBody>(theResult);
     if (aBody)
       return aBody->shape();
 
-    ResultConstructionPtr aConstruct = boost::dynamic_pointer_cast<ModelAPI_ResultConstruction>(
+    ResultConstructionPtr aConstruct = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(
       theResult);
     if (aConstruct)
       return aConstruct->shape();
 
-    ResultGroupPtr aGroup = boost::dynamic_pointer_cast<ModelAPI_ResultGroup>(theResult);
+    ResultGroupPtr aGroup = std::dynamic_pointer_cast<ModelAPI_ResultGroup>(theResult);
     if (aGroup)
       return aGroup->shape();
-    return boost::shared_ptr<GeomAPI_Shape>();
+    return std::shared_ptr<GeomAPI_Shape>();
     */
     return theResult->shape();
   }