]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
WIP
authorAnthony GEAY <anthony.geay@edf.fr>
Fri, 19 Feb 2021 21:24:59 +0000 (22:24 +0100)
committerAnthony GEAY <anthony.geay@edf.fr>
Fri, 19 Feb 2021 21:24:59 +0000 (22:24 +0100)
src/NamingService/SALOME_Fake_NamingService.cxx

index 2bda138c213403884d94351fad81f0e2847e729c..5e6260b5d8b03bf67ef7a3e36680e254d04eebf9 100644 (file)
@@ -62,6 +62,6 @@ CORBA::Object_ptr SALOME_Fake_NamingService::Resolve(const char* Path)
   std::string pathCpp(Path);
   auto it = _map.find(pathCpp);
   if( it != _map.end() )
-    return (*it).second;
+    return CORBA::Object::_duplicate((*it).second);
   return CORBA::Object::_nil();
 }