]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_PluginManager.cpp
Salome HOME
Replace boost::shared_ptr<ModelAPI_Feature> on FeaturePtr
[modules/shaper.git] / src / Model / Model_PluginManager.cpp
index 1a6cef9d82964e297c036547464e3240ac0bdeec..c95ab12426ef7dd5c06e1ffb1399d2a12c54d027 100644 (file)
@@ -24,7 +24,7 @@ using namespace std;
 
 static Model_PluginManager* myImpl = new Model_PluginManager();
 
-boost::shared_ptr<ModelAPI_Feature> Model_PluginManager::createFeature(string theFeatureID)
+FeaturePtr Model_PluginManager::createFeature(string theFeatureID)
 {
   if (this != myImpl) return myImpl->createFeature(theFeatureID);
 
@@ -36,7 +36,7 @@ boost::shared_ptr<ModelAPI_Feature> Model_PluginManager::createFeature(string th
       Config_ModuleReader::loadLibrary(myCurrentPluginName);
     }
     if (myPluginObjs.find(myCurrentPluginName) != myPluginObjs.end()) {
-      boost::shared_ptr<ModelAPI_Feature> aCreated = 
+      FeaturePtr aCreated = 
         myPluginObjs[myCurrentPluginName]->createFeature(theFeatureID);
       if (!aCreated) {
         Events_Error::send(string("Can not initialize feature '") + theFeatureID +
@@ -48,7 +48,7 @@ boost::shared_ptr<ModelAPI_Feature> Model_PluginManager::createFeature(string th
     }
   }
 
-  return boost::shared_ptr<ModelAPI_Feature>(); // return nothing
+  return FeaturePtr(); // return nothing
 }
 
 boost::shared_ptr<ModelAPI_Document> Model_PluginManager::rootDocument()