]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/ServiceNode.cxx
Salome HOME
GUI for HP containers.
[modules/yacs.git] / src / engine / ServiceNode.cxx
index 6d4b167cdb9928436a30ff6595053cbf0783ac09..a0192b979729b1fbd09fe35cd8fc5469ee425958 100644 (file)
@@ -69,6 +69,17 @@ void ServiceNode::performDuplicationOfPlacement(const Node& other)
     _component=otherC._component->clone();
 }
 
+void ServiceNode::performShallowDuplicationOfPlacement(const Node& other)
+{
+  const ServiceNode &otherC=*(dynamic_cast<const ServiceNode *>(&other));
+  //if other has no component don't clone: this will not have one
+  if(otherC._component)
+    {
+      _component=otherC._component;
+      _component->incrRef();
+    }
+}
+
 ServiceNode::~ServiceNode()
 {
   if(_component)