diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-17 14:32:55 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-17 14:32:55 +0100 |
commit | 75f5f0a4747ba841326afd91dc5a4fcdf40afc37 (patch) | |
tree | c839b605949b998fba59ae6f1e11bc57babbdef2 /TAO | |
parent | a1ef42d61bc921c7e942f24583a0af6982f96a42 (diff) | |
download | ATCD-75f5f0a4747ba841326afd91dc5a4fcdf40afc37.tar.gz |
Use bool literals
* TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp:
* TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp:
* TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp:
* TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp:
* TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp:
* TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp:
* TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp:
* TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp:
Diffstat (limited to 'TAO')
8 files changed, 13 insertions, 13 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp index 9a19b055f01..aca8953f5dc 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp @@ -230,7 +230,7 @@ TAO_ECG_CDR_Message_Receiver::Requests::purge_requests ( // **************************************************************** TAO_ECG_UDP_Request_Entry -TAO_ECG_CDR_Message_Receiver::Request_Completed_ (0, 0, 0, 0); +TAO_ECG_CDR_Message_Receiver::Request_Completed_ (false, 0, 0, 0); int TAO_ECG_CDR_Message_Receiver::handle_input ( diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp index ed47518df5e..d8d2961e3fd 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp @@ -44,7 +44,7 @@ TAO_ECG_Complex_Address_Server::init (const char *arg) -1); } size_t len = location - data; - key_string.set (data, len, 1); + key_string.set (data, len, true); data += len + 1; // Extract mcast address to be mapped to just extracted lookup @@ -54,14 +54,14 @@ TAO_ECG_Complex_Address_Server::init (const char *arg) if (location) { len = location - data; - mcast_string.set (data, len, 1); + mcast_string.set (data, len, true); data += len + 1; } else { // This must be the last entry in the mapping. len = ACE_OS::strlen (data); - mcast_string.set (data, len, 1); + mcast_string.set (data, len, true); data += len; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp index 731206ed1b6..c90457fb277 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp @@ -60,7 +60,7 @@ TAO_EC_Default_ProxyPushConsumer::connect_push_supplier ( this->supplier_ = RtecEventComm::PushSupplier::_duplicate (push_supplier); - this->connected_ = 1; + this->connected_ = true; this->qos_ = qos; #if TAO_EC_ENABLE_DEBUG_MESSAGES @@ -104,7 +104,7 @@ TAO_EC_Default_ProxyPushConsumer::disconnect_push_consumer () connected = this->is_connected_i (); supplier = this->supplier_._retn (); - this->connected_ = 0; + this->connected_ = false; if (connected) this->cleanup_i (); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp index cb0c08c2b34..dbcd5a28853 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp @@ -50,7 +50,7 @@ TAO_EC_Simple_Queue_Full_Action::init (int argc, ACE_TCHAR* argv[]) ; // probably ought to print an error message here #endif - } while (0); + } while (false); return 0; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp index 34fa23a0e7a..18e8643be65 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp @@ -615,11 +615,11 @@ TAO_EC_Gateway_IIOP::consumer_ec_non_existent ( TAO_SYNCH_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); - disconnected = 0; + disconnected = false; if (this->is_consumer_ec_connected_i () == 0) { - disconnected = 1; - return 0; + disconnected = true; + return false; } consumer_ec = CORBA::Object::_duplicate (this->consumer_ec_.in ()); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp index 05438b6adf4..141c3bd9b3b 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp @@ -25,7 +25,7 @@ TAO_EC_Null_Scheduling::schedule_event (const RtecEventComm::EventSet &event, const RtecEventComm::Event& e = event[j]; RtecEventComm::Event* buffer = const_cast<RtecEventComm::Event*> (&e); - RtecEventComm::EventSet single_event (1, 1, buffer, 0); + RtecEventComm::EventSet single_event (1, 1, buffer, false); TAO_EC_QOS_Info event_info; filter->push_scheduled_event (single_event, event_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp index d4568b68f94..59698a88284 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp @@ -46,7 +46,7 @@ TAO_EC_ProxyPushConsumer::supplier_non_existent ( ACE_Lock, ace_mon, *this->lock_, CORBA::INTERNAL ()); - disconnected = 0; + disconnected = false; if (!this->is_connected_i ()) { disconnected = true; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp index 3c74d57e59f..fd2f50c1dc3 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp @@ -35,7 +35,7 @@ TAO_EC_Timeout_Adapter::handle_timeout (const ACE_Time_Value & /* tv */, e.header.type = filter->type (); e.header.source = 0; - RtecEventComm::EventSet single_event (1, 1, &e, 0); + RtecEventComm::EventSet single_event (1, 1, &e, false); TAO_EC_QOS_Info qos_info = filter->qos_info (); filter->push_to_proxy (single_event, |