summaryrefslogtreecommitdiff
path: root/TAO/tao/AnyTypeCode/Any.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/AnyTypeCode/Any.cpp')
-rw-r--r--TAO/tao/AnyTypeCode/Any.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/TAO/tao/AnyTypeCode/Any.cpp b/TAO/tao/AnyTypeCode/Any.cpp
index 13619326827..b74124189a3 100644
--- a/TAO/tao/AnyTypeCode/Any.cpp
+++ b/TAO/tao/AnyTypeCode/Any.cpp
@@ -425,15 +425,12 @@ operator<<= (CORBA::Any &any, CORBA::LongDouble ld)
void
operator<<= (CORBA::Any &any, const CORBA::Any &a)
{
- if (0 == &a) // Trying to de-reference NULL Any
- any <<= static_cast<CORBA::Any *>( 0 ); // Use non-copying insertion of a NULL
- else
- TAO::Any_Dual_Impl_T<CORBA::Any>::insert_copy (
- any,
- CORBA::Any::_tao_any_destructor,
- CORBA::_tc_any,
- a
- );
+ TAO::Any_Dual_Impl_T<CORBA::Any>::insert_copy (
+ any,
+ CORBA::Any::_tao_any_destructor,
+ CORBA::_tc_any,
+ a
+ );
}
// Insertion of Any - non-copying.