summaryrefslogtreecommitdiff
path: root/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp')
-rw-r--r--TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp
index 0bba1c76c46..f4acd760936 100644
--- a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp
@@ -21,9 +21,7 @@
# include "tao/AnyTypeCode/Any_Dual_Impl_T.inl"
#endif /* ! __ACE_INLINE__ */
-ACE_RCSID (tao,
- Any_Dual_Impl_T,
- "$Id$")
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename T>
TAO::Any_Dual_Impl_T<T>::Any_Dual_Impl_T (_tao_destructor destructor,
@@ -112,7 +110,7 @@ TAO::Any_Dual_Impl_T<T>::extract (const CORBA::Any & any,
if (_tao_equiv == 0)
{
- return 0;
+ return false;
}
TAO::Any_Impl *impl = any.impl ();
@@ -124,11 +122,11 @@ TAO::Any_Dual_Impl_T<T>::extract (const CORBA::Any & any,
if (narrow_impl == 0)
{
- return 0;
+ return false;
}
_tao_elem = narrow_impl->value_;
- return 1;
+ return true;
}
T *empty_value = 0;
@@ -152,7 +150,7 @@ TAO::Any_Dual_Impl_T<T>::extract (const CORBA::Any & any,
// shared by another Any. This copies the state, not the buffer.
TAO_InputCDR for_reading (unk->_tao_get_cdr ());
- CORBA::Boolean good_decode =
+ CORBA::Boolean const good_decode =
replacement->demarshal_value (for_reading);
if (good_decode)
@@ -160,11 +158,11 @@ TAO::Any_Dual_Impl_T<T>::extract (const CORBA::Any & any,
_tao_elem = replacement->value_;
const_cast<CORBA::Any &> (any).replace (replacement);
replacement_safety.release ();
- return 1;
+ return true;
}
// Duplicated by Any_Impl base class constructor.
- CORBA::release (any_tc);
+ ::CORBA::release (any_tc);
}
ACE_CATCHANY
{
@@ -184,7 +182,7 @@ TAO::Any_Dual_Impl_T<T>::free_value (void)
this->value_destructor_ = 0;
}
- CORBA::release (this->type_);
+ ::CORBA::release (this->type_);
this->value_ = 0;
}
@@ -199,4 +197,6 @@ TAO::Any_Dual_Impl_T<T>::_tao_decode (TAO_InputCDR &cdr
}
}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
#endif /* TAO_ANY_DUAL_IMPL_T_CPP */