This commit is contained in:
Anthony Geay 2021-01-13 11:58:20 +01:00
parent b687cd2004
commit 0eb02fa883
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@
#include <Utils_ExceptHandlers.hxx>
#include <SALOMEDS_wrap.hxx>
#include <SALOMEDS_Attributes_wrap.hxx>
#include "SALOMEDS_Study_i.hxx"
#include <SALOME_KernelServices.hxx>
#include <TCollection_AsciiString.hxx>
@ -215,7 +216,7 @@ SALOMEDS::SObject_ptr SMESH_Gen_i::ObjectToSObject(CORBA::Object_ptr theObject)
//=======================================================================
SALOMEDS::Study_var SMESH_Gen_i::getStudyServant()
{
return SALOMEDS::Study::_duplicate(KERNEL::getStudyServant());
return SALOMEDS::Study::_duplicate(KERNEL::getStudyServantSA());
}
//=======================================================================

View File

@ -32,6 +32,7 @@ std::string BuildSMESHInstance()
CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);
PortableServer::POAManager_var pman = poa->the_POAManager();
PortableServer::ObjectId_var conId;
//
{
char *argv[4] = {"Container","FactoryServer","toto",nullptr};