summaryrefslogtreecommitdiff
path: root/TAO/tao/IORManipulation
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-28 21:26:34 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-28 21:26:34 +0000
commit401d5ca213046f6372675891125b21b5cd2ece97 (patch)
tree309be420cebd7e306a97541cf1c65e6db457b0db /TAO/tao/IORManipulation
parent1b31323cd87339904bff9c43c4e853f65f424bfc (diff)
downloadATCD-401d5ca213046f6372675891125b21b5cd2ece97.tar.gz
ChangeLogTag: Wed Mar 28 15:25:04 2001 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/IORManipulation')
-rw-r--r--TAO/tao/IORManipulation/IORC.cpp40
1 files changed, 31 insertions, 9 deletions
diff --git a/TAO/tao/IORManipulation/IORC.cpp b/TAO/tao/IORManipulation/IORC.cpp
index 261a0e650c2..d8acb2ed33a 100644
--- a/TAO/tao/IORManipulation/IORC.cpp
+++ b/TAO/tao/IORManipulation/IORC.cpp
@@ -685,6 +685,7 @@ TAO_IOP::TAO_IOR_Manipulation::_duplicate (TAO_IOR_Manipulation_ptr obj)
{
CORBA::Object **tmp = ACE_static_cast (CORBA::Object**, target);
*tmp = CORBA::Object::_narrow (src, ACE_TRY_ENV);
+ ACE_CHECK;
}
CORBA_Object*
@@ -806,11 +807,15 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const TAO_IOP::EmptyProf
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (TAO_IOP::_tc_EmptyProfileList, ACE_TRY_ENV)) // not equal
+ int retval =
+ type->equivalent (TAO_IOP::_tc_EmptyProfileList,
+ ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+ if (!retval)
{
return 0;
}
- ACE_TRY_CHECK;
+
if (_tao_any.any_owns_data ())
{
_tao_elem = (TAO_IOP::EmptyProfileList *)_tao_any.value ();
@@ -894,11 +899,14 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const TAO_IOP::NotFound
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (TAO_IOP::_tc_NotFound, ACE_TRY_ENV)) // not equal
+ int retval =
+ type->equivalent (TAO_IOP::_tc_NotFound, ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+ if (!retval)
{
return 0;
}
- ACE_TRY_CHECK;
+
if (_tao_any.any_owns_data ())
{
_tao_elem = (TAO_IOP::NotFound *)_tao_any.value ();
@@ -982,11 +990,16 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const TAO_IOP::Duplicate
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (TAO_IOP::_tc_Duplicate, ACE_TRY_ENV)) // not equal
+
+ int retval =
+ type->equivalent (TAO_IOP::_tc_Duplicate, ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+ // not equal
+ if (!retval)
{
return 0;
}
- ACE_TRY_CHECK;
+
if (_tao_any.any_owns_data ())
{
_tao_elem = (TAO_IOP::Duplicate *)_tao_any.value ();
@@ -1070,11 +1083,15 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const TAO_IOP::Invalid_I
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (TAO_IOP::_tc_Invalid_IOR, ACE_TRY_ENV)) // not equal
+
+ int retval = type->equivalent (TAO_IOP::_tc_Invalid_IOR,
+ ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+ if (!retval)
{
return 0;
}
- ACE_TRY_CHECK;
+
if (_tao_any.any_owns_data ())
{
_tao_elem = (TAO_IOP::Invalid_IOR *)_tao_any.value ();
@@ -1158,7 +1175,12 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const TAO_IOP::MultiProf
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (TAO_IOP::_tc_MultiProfileList, ACE_TRY_ENV)) // not equal
+
+ int retval =
+ type->equivalent (TAO_IOP::_tc_MultiProfileList, ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+
+ if (!retval)
{
return 0;
}