diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-11-18 21:53:07 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-11-18 21:53:07 +0000 |
commit | 7bbbebfbf06cf64937f3b27e51237bdf046a2a19 (patch) | |
tree | 27bbff1966e994926deb11ee2850cc4f71a66b90 /ace/Timer_Wheel_T.cpp | |
parent | 5a34e0200cd988d5113ca35f036c8a591b48e3f8 (diff) | |
download | ATCD-7bbbebfbf06cf64937f3b27e51237bdf046a2a19.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'ace/Timer_Wheel_T.cpp')
-rw-r--r-- | ace/Timer_Wheel_T.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ace/Timer_Wheel_T.cpp b/ace/Timer_Wheel_T.cpp index 53e1fac34e2..c654cd7d616 100644 --- a/ace/Timer_Wheel_T.cpp +++ b/ace/Timer_Wheel_T.cpp @@ -1,11 +1,16 @@ // $Id$ -#if !defined (ACE_TIMER_WHEEL_T_C) +#ifndef ACE_TIMER_WHEEL_T_C #define ACE_TIMER_WHEEL_T_C #define ACE_BUILD_DLL #include "ace/Timer_Wheel_T.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/High_Res_Timer.h" ACE_RCSID(ace, Timer_Wheel_T, "$Id$") @@ -566,7 +571,7 @@ ACE_Timer_Wheel_T<TYPE, FUNCTOR, ACE_LOCK>::expire (const ACE_Time_Value &cur_ti } while (this->wheel_[earliest]->get_next () != this->wheel_[earliest] - && this->wheel_[earliest]->get_next ()->get_timer_value () <= next_earliest_time) + && this->wheel_[earliest]->get_next ()->get_timer_value () <= next_earliest_time) { // Remove the first node in the earliest position ACE_Timer_Node_T<TYPE> *expired = this->wheel_[earliest]->get_next (); |