summaryrefslogtreecommitdiff
path: root/TAO/tao/Valuetype
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Valuetype')
-rw-r--r--TAO/tao/Valuetype/AbstractBase.cpp2
-rw-r--r--TAO/tao/Valuetype/ValueBase.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/TAO/tao/Valuetype/AbstractBase.cpp b/TAO/tao/Valuetype/AbstractBase.cpp
index c6785f74a25..f9bddb40e11 100644
--- a/TAO/tao/Valuetype/AbstractBase.cpp
+++ b/TAO/tao/Valuetype/AbstractBase.cpp
@@ -197,7 +197,7 @@ operator<< (TAO_OutputCDR &strm, const CORBA::AbstractBase_ptr abs)
}
}
- return (CORBA::Boolean) strm.good_bit ();
+ return strm.good_bit ();
}
}
else
diff --git a/TAO/tao/Valuetype/ValueBase.cpp b/TAO/tao/Valuetype/ValueBase.cpp
index 3a92ae576d7..2fa3079f778 100644
--- a/TAO/tao/Valuetype/ValueBase.cpp
+++ b/TAO/tao/Valuetype/ValueBase.cpp
@@ -1251,7 +1251,7 @@ CORBA::ValueBase::_tao_read_codebase_url (TAO_InputCDR& strm,
if (!strm.read_ulong (length))
{
- return 0;
+ return false;
}
VERIFY_MAP (TAO_InputCDR, codebase_url_map, Codebase_URL_Map);
@@ -1276,11 +1276,11 @@ CORBA::ValueBase::_tao_read_codebase_url (TAO_InputCDR& strm,
if (!url_stream.good_bit ())
{
- return 0;
+ return false;
}
if (! url_stream.read_string (codebase_url))
- return 0;
+ return false;
// It's possible the codebase url is read again from an indirection stream,
// so make sure the codebase url is the same.
@@ -1316,7 +1316,7 @@ CORBA::ValueBase::_tao_read_codebase_url (TAO_InputCDR& strm,
strm.skip_bytes (length);
- return 1;
+ return true;
}
void