summaryrefslogtreecommitdiff
path: root/ace/Map_Manager.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-08-06 21:34:37 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-08-06 21:34:37 +0000
commit984358cddf2aa84cf8d81f6f63847cc5d3d2dbba (patch)
treea27b91e7887ff68def4e0ee39bb8a684e961c254 /ace/Map_Manager.i
parent2a5e5830e57cf1291bd28cc355092e25e63f21bc (diff)
downloadATCD-984358cddf2aa84cf8d81f6f63847cc5d3d2dbba.tar.gz
ChangeLogTag:Fri Aug 06 15:20:00 1999 Kirthika Parameswaran <kirthika@cs.wustl.edu>
Diffstat (limited to 'ace/Map_Manager.i')
-rw-r--r--ace/Map_Manager.i20
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 ();
}