diff options
Diffstat (limited to 'ace/Map_Manager.i')
-rw-r--r-- | ace/Map_Manager.i | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/ace/Map_Manager.i b/ace/Map_Manager.i index 0f34d8ed53d..940acbc10b1 100644 --- a/ace/Map_Manager.i +++ b/ace/Map_Manager.i @@ -278,9 +278,7 @@ ACE_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::next (ACE_Map_Entry<EXT_ID, INT return 1; } else - { - return 0; - } + return 0; } template <class EXT_ID, class INT_ID, class ACE_LOCK> ACE_INLINE int @@ -293,13 +291,9 @@ template <class EXT_ID, class INT_ID, class ACE_LOCK> ACE_INLINE int ACE_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::forward_i (void) { if (this->next_ == this->map_man_->occupied_list_id ()) - { - this->next_ = this->map_man_->occupied_list_.next (); - } + this->next_ = this->map_man_->occupied_list_.next (); else - { - this->next_ = this->map_man_->search_structure_[this->next_].next (); - } + this->next_ = this->map_man_->search_structure_[this->next_].next (); return this->next_ != this->map_man_->occupied_list_id (); } @@ -308,13 +302,9 @@ template <class EXT_ID, class INT_ID, class ACE_LOCK> ACE_INLINE int ACE_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::reverse_i (void) { if (this->next_ == this->map_man_->occupied_list_id ()) - { - this->next_ = this->map_man_->occupied_list_.prev (); - } + this->next_ = this->map_man_->occupied_list_.prev (); else - { - this->next_ = this->map_man_->search_structure_[this->next_].prev (); - } + this->next_ = this->map_man_->search_structure_[this->next_].prev (); return this->next_ != this->map_man_->occupied_list_id (); } |