[Libreoffice-commits] .: sc/inc

Joseph Powers jpowers at kemper.freedesktop.org
Mon Nov 29 22:57:52 PST 2010


 sc/inc/refreshtimer.hxx |   29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

New commits:
commit 20ddacb9012ef6d720b50c35934f800f9a9a95a0
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Mon Nov 29 22:57:44 2010 -0800

    Add the missing ;

diff --git a/sc/inc/refreshtimer.hxx b/sc/inc/refreshtimer.hxx
index 1954dfd..b9e3d76 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: */


More information about the Libreoffice-commits mailing list