diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-01-23 16:57:21 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-01-23 16:57:21 +0000 |
commit | ad2a0b60b8316668b93f961511ced619e57f3317 (patch) | |
tree | 0839a5bc288bf6f7dcfc46cae2df737165c8e36b /TAO/tao/DynamicAny/DynCommon.cpp | |
parent | 0c05e52147eae5fdef11cc3a14f412199faf1f1b (diff) | |
download | ATCD-ad2a0b60b8316668b93f961511ced619e57f3317.tar.gz |
ChangeLogTag: Thu Jan 23 10:54:23 2003 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/tao/DynamicAny/DynCommon.cpp')
-rw-r--r-- | TAO/tao/DynamicAny/DynCommon.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/TAO/tao/DynamicAny/DynCommon.cpp b/TAO/tao/DynamicAny/DynCommon.cpp index 7b78edb5cc3..d240779b1d1 100644 --- a/TAO/tao/DynamicAny/DynCommon.cpp +++ b/TAO/tao/DynamicAny/DynCommon.cpp @@ -1156,21 +1156,21 @@ TAO_DynCommon::get_reference (ACE_ENV_SINGLE_ARG_DECL) if (this->has_components_) { DynamicAny::DynAny_var cc = this->check_component (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK_RETURN (0); + ACE_CHECK_RETURN (CORBA::Object::_nil ()); return cc->get_reference (ACE_ENV_SINGLE_ARG_PARAMETER); } else { - CORBA::Object_ptr retval; + CORBA::Object_var retval; - if ((this->any_ >>= CORBA::Any::to_object (retval)) == 0) + if ((this->any_ >>= CORBA::Any::to_object (retval.inout ())) == 0) { ACE_THROW_RETURN (DynamicAny::DynAny::TypeMismatch (), CORBA::Object::_nil ()); } - return CORBA::Object::_duplicate (retval); + return retval._retn (); } } |