diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-07 20:43:40 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-07 20:43:40 +0000 |
commit | fc5b42f1c5ee990d914aab6e9f39b10fcac96e8e (patch) | |
tree | 1e6f1938652bb84e66880f1bbdc15d8e50bfc306 /ace/Containers.cpp | |
parent | 96cf256889cec63fe8656bd7db30499ab7743cc1 (diff) | |
download | ATCD-fc5b42f1c5ee990d914aab6e9f39b10fcac96e8e.tar.gz |
Simplied the code in ACE_Unbounded_Set_Iterator's contructor a bit.
Diffstat (limited to 'ace/Containers.cpp')
-rw-r--r-- | ace/Containers.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ace/Containers.cpp b/ace/Containers.cpp index 0f356dffd5a..c8edc46a8ef 100644 --- a/ace/Containers.cpp +++ b/ace/Containers.cpp @@ -1609,12 +1609,10 @@ ACE_Unbounded_Set_Iterator<T>::dump (void) const template <class T> ACE_Unbounded_Set_Iterator<T>::ACE_Unbounded_Set_Iterator (ACE_Unbounded_Set<T> &s, int end) - : current_ (s.head_->next_), + : current_ (end == 0 ? s.head_->next_ : s.head_ ), set_ (&s) { // ACE_TRACE ("ACE_Unbounded_Set_Iterator<T>::ACE_Unbounded_Set_Iterator"); - if (end != 0) - this->current_ = s.head_; } template <class T> int |