summaryrefslogtreecommitdiff
path: root/TAO/tao
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2009-01-29 10:32:34 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2009-01-29 10:32:34 +0000
commit37af52e11cf290cb5153dd957bd55ae395968e0a (patch)
tree71b1df7f8742731feaed33486c2de656808aed88 /TAO/tao
parentf9863e6b216ee89f177eb325267b38a930c3f442 (diff)
downloadATCD-37af52e11cf290cb5153dd957bd55ae395968e0a.tar.gz
Thu Jan 29 10:32:52 UTC 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* tao/IIOP_Transport.cpp: * tao/Strategies/SCIOP_Transport.cpp: Use operator!
Diffstat (limited to 'TAO/tao')
-rw-r--r--TAO/tao/IIOP_Transport.cpp8
-rw-r--r--TAO/tao/Strategies/SCIOP_Transport.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/TAO/tao/IIOP_Transport.cpp b/TAO/tao/IIOP_Transport.cpp
index 13925672e41..a554b36c987 100644
--- a/TAO/tao/IIOP_Transport.cpp
+++ b/TAO/tao/IIOP_Transport.cpp
@@ -296,7 +296,7 @@ TAO_IIOP_Transport::tear_listen_point_list (TAO_InputCDR &cdr)
cdr.reset_byte_order (static_cast<int> (byte_order));
IIOP::ListenPointList listen_list;
- if ((cdr >> listen_list) == 0)
+ if (!(cdr >> listen_list))
return -1;
// As we have received a bidirectional information, set the flag to
@@ -434,16 +434,16 @@ TAO_IIOP_Transport::get_listen_point (
// Get the count of the number of elements
const CORBA::ULong len = listen_point_list.length ();
-
+
// Increase the length by 1
listen_point_list.length (len + 1);
-
+
// We have the connection and the acceptor endpoint on the
// same interface
IIOP::ListenPoint & point = listen_point_list[len];
point.host = CORBA::string_dup (interface_name.in ());
point.port = endpoint_addr[index].get_port_number ();
-
+
if (TAO_debug_level >= 5)
{
ACE_DEBUG ((LM_DEBUG,
diff --git a/TAO/tao/Strategies/SCIOP_Transport.cpp b/TAO/tao/Strategies/SCIOP_Transport.cpp
index 0588c996ffa..042d6e926ef 100644
--- a/TAO/tao/Strategies/SCIOP_Transport.cpp
+++ b/TAO/tao/Strategies/SCIOP_Transport.cpp
@@ -200,7 +200,7 @@ TAO_SCIOP_Transport::tear_listen_point_list (TAO_InputCDR &cdr)
cdr.reset_byte_order (static_cast<int> (byte_order));
IIOP::ListenPointList listen_list;
- if ((cdr >> listen_list) == 0)
+ if (!(cdr >> listen_list))
return -1;
// As we have received a bidirectional information, set the flag to