]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp
Salome HOME
Replace boost::shared_ptr<ModelAPI_Feature> on FeaturePtr
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Plugin.cpp
index a825c5608e0a96cc95a2a453623bc65088706c6e..4e1bfd19ce1d554d0127b5ebac966731977c8f51 100644 (file)
@@ -16,13 +16,13 @@ ConstructionPlugin_Plugin::ConstructionPlugin_Plugin()
   ModelAPI_PluginManager::get()->registerPlugin(this);
 }
 
-boost::shared_ptr<ModelAPI_Feature> ConstructionPlugin_Plugin::createFeature(string theFeatureID)
+FeaturePtr ConstructionPlugin_Plugin::createFeature(string theFeatureID)
 {
   if (theFeatureID == "Point") {
-    return boost::shared_ptr<ModelAPI_Feature>(new ConstructionPlugin_Point);
+    return FeaturePtr(new ConstructionPlugin_Point);
   } else if (theFeatureID == "Extrusion") {
-    return boost::shared_ptr<ModelAPI_Feature>(new ConstructionPlugin_Extrusion);
+    return FeaturePtr(new ConstructionPlugin_Extrusion);
   }
   // feature of such kind is not found
-  return boost::shared_ptr<ModelAPI_Feature>();
+  return FeaturePtr();
 }