Salome HOME
Restore selection in the viewer by multi selector widget activation.
[modules/shaper.git] / src / ModelAPI / ModelAPI_Feature.cpp
index ef212d23f1b13559d4d89280821cbb1f7af06c88..d9533e83e33d17c570bcc013ab65332f3be084dd 100644 (file)
@@ -132,10 +132,11 @@ void ModelAPI_Feature::eraseResults()
   }
 }
 
-std::shared_ptr<ModelAPI_Document> ModelAPI_Feature::documentToAdd()
+const std::string& ModelAPI_Feature::documentToAdd()
 {
-  // null pointer t ouse the current document
-  return std::shared_ptr<ModelAPI_Document>();
+  // empty to use the current document
+  static const std::string anEmpty;
+  return anEmpty;
 }
 
 void ModelAPI_Feature::erase()