diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-10-03 19:38:24 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-10-03 19:38:24 +0000 |
commit | 7a96a0d98d9bc982ef3964a8bfd69913a3ca4373 (patch) | |
tree | 71bb43af2b5138b239bf793029785076922d9ac2 /ACE/ace/Connector.cpp | |
parent | 120546b69ce995607de011978e2b0ba51b073cda (diff) | |
download | ATCD-7a96a0d98d9bc982ef3964a8bfd69913a3ca4373.tar.gz |
Wed Oct 3 19:31:15 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Connector.cpp')
-rw-r--r-- | ACE/ace/Connector.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ACE/ace/Connector.cpp b/ACE/ace/Connector.cpp index c971329c0cd..112fbca4003 100644 --- a/ACE/ace/Connector.cpp +++ b/ACE/ace/Connector.cpp @@ -655,7 +655,7 @@ ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::close (void) ACE_HANDLE *handle = 0; while (1) { - ACE_Unbounded_Set_Iterator<ACE_HANDLE> + ACE_Unbounded_Set_Iterator<ACE_HANDLE> iterator (this->non_blocking_handles ()); if (!iterator.next (handle)) break; @@ -775,12 +775,12 @@ ACE_Strategy_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::open // First we decide if we need to clean up. if (this->creation_strategy_ != 0 && - this->delete_creation_strategy_ != 0 && + this->delete_creation_strategy_ && cre_s != 0) { delete this->creation_strategy_; this->creation_strategy_ = 0; - this->delete_creation_strategy_ = 0; + this->delete_creation_strategy_ = false; } if (cre_s != 0) @@ -790,19 +790,19 @@ ACE_Strategy_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::open ACE_NEW_RETURN (this->creation_strategy_, CREATION_STRATEGY, -1); - this->delete_creation_strategy_ = 1; + this->delete_creation_strategy_ = true; } // Initialize the accept strategy. if (this->connect_strategy_ != 0 && - this->delete_connect_strategy_ != 0 && + this->delete_connect_strategy_ && conn_s != 0) { delete this->connect_strategy_; this->connect_strategy_ = 0; - this->delete_connect_strategy_ = 0; + this->delete_connect_strategy_ = false; } if (conn_s != 0) @@ -812,18 +812,18 @@ ACE_Strategy_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::open ACE_NEW_RETURN (this->connect_strategy_, CONNECT_STRATEGY, -1); - this->delete_connect_strategy_ = 1; + this->delete_connect_strategy_ = true; } // Initialize the concurrency strategy. if (this->concurrency_strategy_ != 0 && - this->delete_concurrency_strategy_ != 0 && + this->delete_concurrency_strategy_ && con_s != 0) { delete this->concurrency_strategy_; this->concurrency_strategy_ = 0; - this->delete_concurrency_strategy_ = 0; + this->delete_concurrency_strategy_ = false; } if (con_s != 0) @@ -833,7 +833,7 @@ ACE_Strategy_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::open ACE_NEW_RETURN (this->concurrency_strategy_, CONCURRENCY_STRATEGY, -1); - this->delete_concurrency_strategy_ = 1; + this->delete_concurrency_strategy_ = true; } return 0; @@ -847,11 +847,11 @@ ACE_Strategy_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::ACE_Strategy_Connecto ACE_Concurrency_Strategy<SVC_HANDLER> *con_s, int flags) : creation_strategy_ (0), - delete_creation_strategy_ (0), + delete_creation_strategy_ (false), connect_strategy_ (0), - delete_connect_strategy_ (0), + delete_connect_strategy_ (false), concurrency_strategy_ (0), - delete_concurrency_strategy_ (0) + delete_concurrency_strategy_ (false) { ACE_TRACE ("ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::ACE_Strategy_Connector"); @@ -873,17 +873,17 @@ ACE_Strategy_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::close (void) { if (this->delete_creation_strategy_) delete this->creation_strategy_; - this->delete_creation_strategy_ = 0; + this->delete_creation_strategy_ = false; this->creation_strategy_ = 0; if (this->delete_connect_strategy_) delete this->connect_strategy_; - this->delete_connect_strategy_ = 0; + this->delete_connect_strategy_ = false; this->connect_strategy_ = 0; if (this->delete_concurrency_strategy_) delete this->concurrency_strategy_; - this->delete_concurrency_strategy_ = 0; + this->delete_concurrency_strategy_ = false; this->concurrency_strategy_ = 0; return SUPER::close (); |