}
// asl, fix for PAL10455: Remove references to SObject
- SALOMEDS::Study::ListOfSObject* aRefs = aStudyDocument->FindDependances( theSObject );
+ SALOMEDS::Study::ListOfSObject_var aRefs = aStudyDocument->FindDependances( theSObject );
for( int i=0, n=aRefs->length(); i<n; i++ )
{
- SALOMEDS::SObject_var o = (*aRefs)[i];
+ SALOMEDS::SObject_var o = aRefs[i];
if( o->GetFatherComponent()->ComponentDataType()==theSObject->GetFatherComponent()->ComponentDataType() )
{
aStudyBuilder->RemoveReference( o );