[PATCH 2/3] reduced scopes

Takeshi Abe tabe at fixedpoint.jp
Fri Jan 28 17:28:04 PST 2011


---
 sw/source/ui/uiview/scroll.cxx  |    2 --
 sw/source/ui/uiview/uivwimp.cxx |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/sw/source/ui/uiview/scroll.cxx b/sw/source/ui/uiview/scroll.cxx
index 6755d90..e8b6f4f 100644
--- a/sw/source/ui/uiview/scroll.cxx
+++ b/sw/source/ui/uiview/scroll.cxx
@@ -129,7 +129,6 @@ void SwScrollbar::AutoShow()
 {
     long nVis = GetVisibleSize();
     long nLen = GetRange().Len();
-    {
         if( nVis >= nLen - 1)
         {
             if(ScrollBar::IsVisible())
@@ -142,7 +141,6 @@ void SwScrollbar::AutoShow()
         {
             ScrollBar::Show(TRUE);
         }
-    }
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/uiview/uivwimp.cxx b/sw/source/ui/uiview/uivwimp.cxx
index 9880515..80f3758 100644
--- a/sw/source/ui/uiview/uivwimp.cxx
+++ b/sw/source/ui/uiview/uivwimp.cxx
@@ -265,8 +265,8 @@ SwScannerEventListener::~SwScannerEventListener()
 
 void SAL_CALL SwScannerEventListener::disposing( const EventObject& rEventObject) throw(uno::RuntimeException)
 {
-    SolarMutexGuard aGuard;
 #if defined WIN || defined WNT || defined UNX
+    SolarMutexGuard aGuard;
     if( pView )
         pView->ScannerEventHdl( rEventObject );
 #endif
-- 
1.7.2.3


----Next_Part(Sat_Jan_29_11_01_20_2011_838)--
Content-Type: Text/X-Patch; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: 0003-removed-useless-codes.patch
Content-Disposition: inline; filename="0003-removed-useless-codes.patch"



More information about the LibreOffice mailing list