diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-06-07 02:45:29 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-06-07 02:45:29 +0000 |
commit | 5187757cabfbd83c3533a87c44722ac541545e01 (patch) | |
tree | 98d5521bf25f95bfdc8dd4fae289e0c50a126530 /ace/Timer_Wheel_T.cpp | |
parent | 8c318f083cdd2bee6bdb5a795b5dd5be0d119df3 (diff) | |
download | ATCD-5187757cabfbd83c3533a87c44722ac541545e01.tar.gz |
moved declaration of "i" out of loop because it is used in two loops
Diffstat (limited to 'ace/Timer_Wheel_T.cpp')
-rw-r--r-- | ace/Timer_Wheel_T.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ace/Timer_Wheel_T.cpp b/ace/Timer_Wheel_T.cpp index 95cb6fdef2e..547d586908f 100644 --- a/ace/Timer_Wheel_T.cpp +++ b/ace/Timer_Wheel_T.cpp @@ -257,9 +257,10 @@ ACE_Timer_Wheel_T<TYPE, FUNCTOR, LOCK>::cancel (const TYPE &type, ACE_MT (ACE_GUARD_RETURN (LOCK, ace_mon, this->mutex_, -1)); int number_of_cancellations = 0; + size_t i; // Walk through the wheel - for (size_t i = 0; i < this->wheel_size_; i++) + for (i = 0; i < this->wheel_size_; i++) { ACE_Timer_Node_T<TYPE> *curr = this->wheel_[i]->get_next (); |