]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
StudyId should be passed into Find method
authorasl <asl@opencascade.com>
Fri, 20 Nov 2009 07:53:14 +0000 (07:53 +0000)
committerasl <asl@opencascade.com>
Fri, 20 Nov 2009 07:53:14 +0000 (07:53 +0000)
src/SALOMEDS/SALOMEDS_Study_i.cxx

index 37e85b706ef57ec721b5efb99e48d831db28adb1..7544d052165d24eb7ff57b93cb7e0bcb91ea14ed 100644 (file)
@@ -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()