Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / Model / Model_PluginManager.cxx
index 4c3e3da6d98bed9d746e067c366b167ac0f4480d..ea0b826a646015a0606057a963dbf1d6848248c7 100644 (file)
@@ -5,7 +5,7 @@
 #include <Model_PluginManager.h>
 #include <ModelAPI_Feature.h>
 #include <ModelAPI_Plugin.h>
-#include <Model_Object.h>
+#include <Model_Data.h>
 #include <Model_Document.h>
 #include <Model_Application.h>
 #include <Event_Loop.h>
@@ -16,8 +16,7 @@ using namespace std;
 
 static Model_PluginManager* myImpl = new Model_PluginManager();
 
-std::shared_ptr<ModelAPI_Feature> Model_PluginManager::createFeature(
-  string theFeatureID, const bool theAddToDoc)
+shared_ptr<ModelAPI_Feature> Model_PluginManager::createFeature(string theFeatureID)
 {
   if (this != myImpl) return myImpl->createFeature(theFeatureID);
 
@@ -30,7 +29,7 @@ std::shared_ptr<ModelAPI_Feature> Model_PluginManager::createFeature(
     }
     if (myPluginObjs.find(myCurrentPluginName) != myPluginObjs.end()) {
       std::shared_ptr<ModelAPI_Feature> aCreated = 
-        myPluginObjs[myCurrentPluginName]->createFeature(theFeatureID, theAddToDoc);
+        myPluginObjs[myCurrentPluginName]->createFeature(theFeatureID);
       return aCreated;
     }
   }