- aStr = CORBA::string_dup( theParameters[i] );
- //printf( "\tparam = %s\n", aStr );
- SALOME::Parameter_ptr aParam = theNotebook->GetParameter( aStr );
- TCollection_AsciiString anAsciiName;
- if( !CORBA::is_nil( aParam ) )
- {
- //printf( "add dep\n" );
- theNotebook->AddDependency( _this(), aParam );
- anAsciiName = aStr;
- }
- aFunc->SetParam( i+1, anAsciiName );
+ std::string aParam = CORBA::string_dup( theParameters[i] );
+ SALOME::Parameter_ptr aParamPtr = theNotebook->GetParameter( aParam.c_str() );
+ if( !CORBA::is_nil( aParamPtr ) )
+ theNotebook->AddDependency( _this(), aParamPtr );
+
+ aFunc->SetParam( i+1, TCollection_AsciiString( aParam.c_str() ) );
+ _parameters.push_back( aParam );