diff options
author | corsaro <corsaro@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-09 00:30:17 +0000 |
---|---|---|
committer | corsaro <corsaro@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-09 00:30:17 +0000 |
commit | 3da5b259d6ba17472864a2e4554b709d8ac9c9b2 (patch) | |
tree | 707610cdba462732222b8e9bfa392033a83da527 /TAO/tao/MProfile.i | |
parent | 88929a7e1392bc42190c156f2c0988afbb714f1a (diff) | |
download | ATCD-3da5b259d6ba17472864a2e4554b709d8ac9c9b2.tar.gz |
Thu Feb 08 18:15:59 2001 Angelo Corsaro <corsaro@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/MProfile.i')
-rw-r--r-- | TAO/tao/MProfile.i | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/TAO/tao/MProfile.i b/TAO/tao/MProfile.i index d13887e406b..1623cd10b18 100644 --- a/TAO/tao/MProfile.i +++ b/TAO/tao/MProfile.i @@ -253,19 +253,13 @@ TAO_MProfile::add_profile (TAO_Profile *pfile) } ACE_INLINE void -TAO_MProfile::create_policy_list (void) +TAO_MProfile::create_policy_list (CORBA::Environment &ACE_TRY_ENV) { - // Precondition: Make sure that the policy list - // has not already allocated. - ACE_ASSERT (this->policy_list_ == 0); - - ACE_NEW (this->policy_list_, CORBA::PolicyList ()); - - // Post-Condition: Make sure that the memory get allcated - // for real. - ACE_ASSERT (this->policy_list_ != 0); - - // @@ Marina & Irfan I would raise an exception in this case. + ACE_NEW_THROW_EX (this->policy_list_, + CORBA::PolicyList, + CORBA::NO_MEMORY (TAO_DEFAULT_MINOR_CODE, + CORBA::COMPLETED_NO) + ); } |