summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2004-04-24 04:31:56 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2004-04-24 04:31:56 +0000
commit9bf7b030602d90f6c7353a0401418dff6fd7e35e (patch)
treebd9dd139e88fa277ccbd222866acefa3466dd6d8 /TAO/examples/Simple
parent2da87dfd58cc8438a73f8c1700d9e83252525a05 (diff)
downloadATCD-9bf7b030602d90f6c7353a0401418dff6fd7e35e.tar.gz
ChangeLogTag:Fri Apr 23 20:28:35 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/examples/Simple')
-rw-r--r--TAO/examples/Simple/chat/Broadcaster_i.cpp5
-rw-r--r--TAO/examples/Simple/chat/Broadcaster_i.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/TAO/examples/Simple/chat/Broadcaster_i.cpp b/TAO/examples/Simple/chat/Broadcaster_i.cpp
index c3be95aab27..20c53f09dc2 100644
--- a/TAO/examples/Simple/chat/Broadcaster_i.cpp
+++ b/TAO/examples/Simple/chat/Broadcaster_i.cpp
@@ -19,14 +19,15 @@
#include "Broadcaster_i.h"
-int
+bool
Broadcaster_i::Receiver_Data::operator == (const Broadcaster_i::Receiver_Data &receiver_data) const
{
// The <_is_equivalent> function checks if the _var and _ptr objects
// are the same. NOTE: this call might not behave well on other
// ORBs since <_is_equivalent> isn't guaranteed to differentiate
// object references.
- return this->receiver_->_is_equivalent (receiver_data.receiver_.in ())
+ return
+ this->receiver_->_is_equivalent (receiver_data.receiver_.in ())
&& this->nickname_ == receiver_data.nickname_;
}
diff --git a/TAO/examples/Simple/chat/Broadcaster_i.h b/TAO/examples/Simple/chat/Broadcaster_i.h
index e85a573ea80..cbe7272ad33 100644
--- a/TAO/examples/Simple/chat/Broadcaster_i.h
+++ b/TAO/examples/Simple/chat/Broadcaster_i.h
@@ -85,7 +85,7 @@ public:
// = DESCRIPTION
// Saves the Receiver_var and user nickname.
public:
- int operator == (const Receiver_Data &receiver_data) const;
+ bool operator == (const Receiver_Data &receiver_data) const;
// The == op required by the ACE_Unbounded set.
Receiver_var receiver_;