From 449b805c00ad8298c58d7d618f858dd899e2c161 Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 15 Dec 2009 13:19:29 +0000 Subject: [PATCH] GEOM object now inherits default implementation of Parameterized object --- src/GEOM_I/GEOM_Gen_i.cc | 2 +- src/GEOM_I/GEOM_Object_i.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index adb3180e1..6c43c3bf0 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -1652,7 +1652,7 @@ GEOM::GEOM_Object_ptr GEOM_Gen_i::GetObject (CORBA::Long theStudyID, const char* GEOM::GEOM_Gen_ptr engine = _this(); //transfer the reference to GEOM_Object_i - GEOM_Object_i* servant = new GEOM_Object_i (_poa, engine, handle_object); + GEOM_Object_i* servant = new GEOM_Object_i (_poa, engine, handle_object, GetNotebook( theStudyID ) ); PortableServer::ObjectId_var id = _poa->activate_object(servant); obj = servant->_this(); diff --git a/src/GEOM_I/GEOM_Object_i.cc b/src/GEOM_I/GEOM_Object_i.cc index 83e536deb..9ca072c64 100644 --- a/src/GEOM_I/GEOM_Object_i.cc +++ b/src/GEOM_I/GEOM_Object_i.cc @@ -54,8 +54,8 @@ //============================================================================= GEOM_Object_i::GEOM_Object_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine, - Handle(GEOM_Object) theImpl) -: SALOME::GenericObj_i( thePOA ), _engine(theEngine), _impl(theImpl) + Handle(GEOM_Object) theImpl, SALOME::Notebook_ptr theNotebook ) + : SALOME_ParameterizedObject( theNotebook ), _engine(theEngine), _impl(theImpl) { } -- 2.39.2