From 4bed6e87c17679b7fcf4fb7d512f54b1a3acfc20 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 20 Nov 2009 07:53:14 +0000 Subject: [PATCH] StudyId should be passed into Find method --- src/SALOMEDS/SALOMEDS_Study_i.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SALOMEDS/SALOMEDS_Study_i.cxx b/src/SALOMEDS/SALOMEDS_Study_i.cxx index 37e85b706..7544d0521 100644 --- a/src/SALOMEDS/SALOMEDS_Study_i.cxx +++ b/src/SALOMEDS/SALOMEDS_Study_i.cxx @@ -933,7 +933,7 @@ CORBA::LongLong SALOMEDS_Study_i::GetLocalImpl(const char* theHostname, CORBA::L SALOME::GenericObj_ptr SALOMEDS_Study_i::FindObjectByInternalEntry( const char* theComponent, const char* theEntry ) { - SALOME::GenericObj_ptr aRes; + SALOME::GenericObj_var aRes; SALOMEDS::StudyBuilder_ptr aBuilder = NewBuilder(); SALOMEDS::SComponent_ptr aSComponent = FindComponent( theComponent ); @@ -945,10 +945,10 @@ SALOME::GenericObj_ptr SALOMEDS_Study_i::FindObjectByInternalEntry( const char* SALOMEDS::AttributeIOR_ptr anAttrIOR = SALOMEDS::AttributeIOR::_narrow( anAttr ); CORBA::Object_var aCompObj = _orb->string_to_object( anAttrIOR->Value() ); Engines::Component_var aComponent = Engines::Component::_narrow( aCompObj ); - aRes = aComponent->FindObjectByInternalEntry( theEntry ); + aRes = aComponent->FindObjectByInternalEntry( StudyId(), theEntry ); } } - return aRes; + return aRes._retn(); } SALOME::Notebook_ptr SALOMEDS_Study_i::GetNotebook() -- 2.39.2