Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Part.cpp
index 440eb6f2596322c2ed2f98a6e840a6115904db14..0fd91d96958458e2a292ef214608d854586eb12f 100644 (file)
@@ -6,7 +6,6 @@
 #include "ModelAPI_PluginManager.h"
 #include "ModelAPI_Document.h"
 #include "ModelAPI_Data.h"
-#include "ModelAPI_Iterator.h"
 #include "ModelAPI_AttributeDocRef.h"
 
 using namespace std;
@@ -22,13 +21,13 @@ void PartSetPlugin_Part::initAttributes()
 
 void PartSetPlugin_Part::execute() 
 {
-  shared_ptr<ModelAPI_AttributeDocRef> aDocRef = data()->docRef(PART_ATTR_DOC_REF);
+  boost::shared_ptr<ModelAPI_AttributeDocRef> aDocRef = data()->docRef(PART_ATTR_DOC_REF);
   if (!aDocRef->value()) { // create a document if not yet created
-    shared_ptr<ModelAPI_Document> aPartSetDoc = ModelAPI_PluginManager::get()->rootDocument();
+    boost::shared_ptr<ModelAPI_Document> aPartSetDoc = ModelAPI_PluginManager::get()->rootDocument();
     aDocRef->setValue(aPartSetDoc->subDocument(data()->getName()));
   }
 }
 
-shared_ptr<ModelAPI_Document> PartSetPlugin_Part::documentToAdd() {
+boost::shared_ptr<ModelAPI_Document> PartSetPlugin_Part::documentToAdd() {
   return ModelAPI_PluginManager::get()->rootDocument();
 }