Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeDocRef.h
index e9a602dccf8538eb786d95c7d18ee1341095052d..473db7a44782e1784f28eb575a964bd61a2837e5 100644 (file)
@@ -17,10 +17,10 @@ class MODELAPI_EXPORT ModelAPI_AttributeDocRef : public ModelAPI_Attribute
 {
 public:
   /// Defines the document referenced from this attribute
-  virtual void setValue(std::shared_ptr<ModelAPI_Document> theDoc) = 0;
+  virtual void setValue(boost::shared_ptr<ModelAPI_Document> theDoc) = 0;
 
   /// Returns document referenced from this attribute
-  virtual std::shared_ptr<ModelAPI_Document> value() = 0;
+  virtual boost::shared_ptr<ModelAPI_Document> value() = 0;
 
   /// Returns the type of this class of attributes
   static std::string type() {return "DocRef";}
@@ -28,6 +28,9 @@ public:
   /// Returns the type of this class of attributes, not static method
   virtual std::string attributeType() {return type();}
 
+  /// To virtually destroy the fields of successors
+  virtual ~ModelAPI_AttributeDocRef() {}
+
 protected:
   /// Objects are created for features automatically
   ModelAPI_AttributeDocRef()