summaryrefslogtreecommitdiff
path: root/TAO/tao/AnyTypeCode/Any_Impl_T.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2006-03-06 15:32:37 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2006-03-06 15:32:37 +0000
commit62e05725747789e0f46a32f883d5141eac4c7f94 (patch)
treefed752e5f687df20512918ed16ecbbd782582768 /TAO/tao/AnyTypeCode/Any_Impl_T.cpp
parentcdbb2f180b30d9fe0fefd6bd7b63d394dbd8d64f (diff)
downloadATCD-62e05725747789e0f46a32f883d5141eac4c7f94.tar.gz
ChangeLogTag: Mon Mar 06 15:13:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/AnyTypeCode/Any_Impl_T.cpp')
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl_T.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/TAO/tao/AnyTypeCode/Any_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Impl_T.cpp
index c0e8104cf70..d4afd38e237 100644
--- a/TAO/tao/AnyTypeCode/Any_Impl_T.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Impl_T.cpp
@@ -69,7 +69,7 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any,
if (_tao_equiv == 0)
{
- return 0;
+ return false;
}
TAO::Any_Impl *impl = any.impl ();
@@ -81,11 +81,11 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any,
if (narrow_impl == 0)
{
- return 0;
+ return false;
}
_tao_elem = (T *) narrow_impl->value_;
- return 1;
+ return true;
}
TAO::Any_Impl_T<T> *replacement = 0;
@@ -93,7 +93,7 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any,
TAO::Any_Impl_T<T> (destructor,
any_tc,
0),
- 0);
+ false);
auto_ptr<TAO::Any_Impl_T<T> > replacement_safety (replacement);
@@ -105,7 +105,7 @@ TAO::Any_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)
@@ -113,7 +113,7 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any,
_tao_elem = const_cast<T *> (replacement->value_);
const_cast<CORBA::Any &> (any).replace (replacement);
replacement_safety.release ();
- return 1;
+ return true;
}
// Duplicated by Any_Impl base class constructor.