// set exception handler to catch unexpected CORBA exceptions
Unexpect aCatch(SALOME_SalomeException);
- // set result status to error initially
- MED_ORB::status result = MED_ORB::OP_ERROR;
-
// check if reference to study is valid
if (!CORBA::is_nil(study)) {
// get full object path
}
}
- result = MED_ORB::OP_OK;
- return result;
+ return MED_ORB::OP_OK;
}
MED_ORB::status
// set exception handler to catch unexpected CORBA exceptions
Unexpect aCatch(SALOME_SalomeException);
- // set result status to error initially
- MED_ORB::status result = MED_ORB::OP_ERROR;
-
if (_fieldSeriesEntries.find(fieldId) == _fieldSeriesEntries.end()) {
std::cerr << "Field not found\n";
return MED_ORB::OP_ERROR ;
if (soFieldseries->IsNull()) {
std::cerr << "Entry not found\n";
- return MED_ORB::OP_ERROR;
+ return MED_ORB::OP_ERROR;
}
SALOMEDS::StudyBuilder_var studyBuilder = study->NewBuilder();
aParam->SetBool(IS_PRESENTATION, true);
aParam->SetInt(PRESENTATION_ID, presentationId);
- result = MED_ORB::OP_OK;
- return result;
+ return MED_ORB::OP_OK;
}
MED_ORB::status
// set exception handler to catch unexpected CORBA exceptions
Unexpect aCatch(SALOME_SalomeException);
- // set result status to error initially
- MED_ORB::status result = MED_ORB::OP_ERROR;
-
SALOMEDS::StudyBuilder_var studyBuilder = study->NewBuilder();
SALOMEDS::UseCaseBuilder_var useCaseBuilder = study->GetUseCaseBuilder();
}
}
}
+
+ return MED_ORB::OP_OK;
}
Engines::TMPFile*