diff options
author | Joseph Powers <jpowers27@cox.net> | 2010-11-29 22:57:44 -0800 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2010-11-29 22:57:44 -0800 |
commit | 69dfea6f1adf56d9e0e49e42baaf76431d1a4298 (patch) | |
tree | 3388a181c0df1a02ba2140bb21e83f67196e61a5 /sc/inc/refreshtimer.hxx | |
parent | Dead Code Removal (diff) | |
download | core-69dfea6f1adf56d9e0e49e42baaf76431d1a4298.tar.gz core-69dfea6f1adf56d9e0e49e42baaf76431d1a4298.zip |
Add the missing ;
Diffstat (limited to 'sc/inc/refreshtimer.hxx')
-rw-r--r-- | sc/inc/refreshtimer.hxx | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/sc/inc/refreshtimer.hxx b/sc/inc/refreshtimer.hxx index 606c61970b71..bbaa90f7cc20 100644 --- a/sc/inc/refreshtimer.hxx +++ b/sc/inc/refreshtimer.hxx @@ -44,7 +44,8 @@ private: public: ScRefreshTimerControl() : nBlockRefresh(0) {} - void SetAllowRefresh( BOOL b ) { + void SetAllowRefresh( BOOL b ) + { if ( b && nBlockRefresh ) --nBlockRefresh; else if ( !b && nBlockRefresh < (USHORT)(~0) ) @@ -63,13 +64,14 @@ private: ScRefreshTimerControl * const * ppControl; public: - ScRefreshTimerProtector( ScRefreshTimerControl * const * pp ); + ScRefreshTimerProtector( ScRefreshTimerControl * const * pp ); - ~ScRefreshTimerProtector() { + ~ScRefreshTimerProtector() + { if ( ppControl && *ppControl ) (*ppControl)->SetAllowRefresh( TRUE ); } -} +}; //============================================================================= @@ -78,13 +80,12 @@ class ScRefreshTimer : public AutoTimer private: ScRefreshTimerControl * const * ppControl; - void AppendToControl() { - } + void AppendToControl() {} - void RemoveFromControl() { - } + void RemoveFromControl() {} - void Start() { + void Start() + { if ( GetTimeout() ) AutoTimer::Start(); } @@ -92,7 +93,8 @@ private: public: ScRefreshTimer() : ppControl(0) { SetTimeout( 0 ); } - ScRefreshTimer( ULONG nSeconds ) : ppControl(0) { + ScRefreshTimer( ULONG nSeconds ) : ppControl(0) + { SetTimeout( nSeconds * 1000 ); Start(); } @@ -101,7 +103,8 @@ public: virtual ~ScRefreshTimer(); - ScRefreshTimer& operator=( const ScRefreshTimer& r ) { + ScRefreshTimer& operator=( const ScRefreshTimer& r ) + { SetRefreshControl(0); AutoTimer::operator=( r ); return *this; @@ -115,7 +118,8 @@ public: void StartRefreshTimer() { Start(); } - void SetRefreshControl( ScRefreshTimerControl * const * pp ) { + void SetRefreshControl( ScRefreshTimerControl * const * pp ) + { RemoveFromControl(); ppControl = pp; AppendToControl(); @@ -132,7 +136,6 @@ public: SC_DLLPUBLIC virtual void Timeout(); }; - #endif // SC_REFRESHTIMER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |