diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-03-21 20:04:48 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-03-21 20:04:48 +0000 |
commit | f797fcd6004cc2a8b595c4b1ba2ac6482d1fdeb8 (patch) | |
tree | 6a09865d0c260552f76f345fecc5caf29afb8162 /TAO/tao/NVList.cpp | |
parent | 6028e711b83d8e5f632659e24ccbf05c63ab3c6c (diff) | |
download | ATCD-f797fcd6004cc2a8b595c4b1ba2ac6482d1fdeb8.tar.gz |
ChangeLogTag:Tue Mar 21 13:51:23 2000 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/NVList.cpp')
-rw-r--r-- | TAO/tao/NVList.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/TAO/tao/NVList.cpp b/TAO/tao/NVList.cpp index 90baedd7f5b..adbdc22bed2 100644 --- a/TAO/tao/NVList.cpp +++ b/TAO/tao/NVList.cpp @@ -9,6 +9,7 @@ #include "tao/Exception.h" #include "tao/Environment.h" #include "tao/ORB.h" +#include "tao/BoundsC.h" #include "tao/debug.h" #include "ace/Auto_Ptr.h" @@ -148,21 +149,9 @@ CORBA_NVList::add_value (const char *name, // The normal behaviour for parameters is that the ORB "borrows" // their memory for the duration of calls. // - if (value.value_) - { - nv->any_.replace (value.type_, - value.value_, - 0, - ACE_TRY_ENV); - } - else - { - nv->any_._tao_replace (value.type_, - value.byte_order_, - value.cdr_, - ACE_TRY_ENV); - } - ACE_CHECK_RETURN (0); + nv->any_._tao_replace (value.type_, + value.byte_order_, + value.cdr_); } return nv; } @@ -265,7 +254,7 @@ CORBA_NVList::item (CORBA::ULong n, CORBA::Environment &ACE_TRY_ENV) ACE_CHECK_RETURN (CORBA::NamedValue::_nil ()); if (n >= this->max_) // 0 based indexing - ACE_THROW_RETURN (CORBA::TypeCode::Bounds (), 0); + ACE_THROW_RETURN (CORBA::Bounds (), 0); CORBA::NamedValue_ptr *nv; |