diff options
author | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-13 22:38:55 +0000 |
---|---|---|
committer | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-13 22:38:55 +0000 |
commit | 3d4c360fdf3c3d5b4e086e7eb0d0063fcc17b77a (patch) | |
tree | d2fb660a564f717c95be591d9b874c32e84c4a5d /TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp | |
parent | cc25d02fe5f11b5a8a7a66bb562eb9932e6900f7 (diff) | |
download | ATCD-3d4c360fdf3c3d5b4e086e7eb0d0063fcc17b77a.tar.gz |
replaced new operators with ACE_NEW_THROW_EX
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp index b21e54d4e49..05ea32418c8 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp @@ -682,14 +682,19 @@ compute_scheduling (CORBA::Long minimum_priority, // storing the maximum severity level recorded so far. if (anomalies.ptr () == 0) { - anomalies = - new RtecScheduler::Scheduling_Anomaly_Set (0); + ACE_NEW_THROW_EX (anomalies, + RtecScheduler::Scheduling_Anomaly_Set (0), + CORBA::NO_MEMORY ()); + ACE_CHECK; } // return the set of scheduled RT_Infos if (infos.ptr () == 0) { - infos = new RtecScheduler::RT_Info_Set (this->rt_info_count_); + ACE_NEW_THROW_EX (infos, + RtecScheduler::RT_Info_Set (this->rt_info_count_), + CORBA::NO_MEMORY ()); + ACE_CHECK; } infos->length (this->rt_info_count_); RtecScheduler::RT_Info* rt_info = 0; @@ -704,8 +709,11 @@ compute_scheduling (CORBA::Long minimum_priority, // return the set of scheduled Config_Infos if (configs.ptr () == 0) { - configs = - new RtecScheduler::Config_Info_Set(this->config_info_count_); + ACE_NEW_THROW_EX (configs, + RtecScheduler::Config_Info_Set(this-> + config_info_count_), + CORBA::NO_MEMORY ()); + ACE_CHECK; } configs->length (this->config_info_count_); RtecScheduler::Config_Info* config_info = 0; |