[Libreoffice-commits] .: sc/source

Caolán McNamara caolan at kemper.freedesktop.org
Sat Dec 18 11:09:24 PST 2010


 sc/source/ui/view/tabview.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 0cd69aa9e2d5738261e0ff513a1ab0354d7a9e64
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Dec 18 19:09:04 2010 +0000

    cppcheck: can reduce the scope of this variable

diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 33f7068..e402056 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -441,7 +441,6 @@ void ScTabView::DoResize( const Point& rOffset, const Size& rSize, BOOL bInner )
     long nPosY = rOffset.Y();
     long nSizeX = rSize.Width();
     long nSizeY = rSize.Height();
-    long nSize1;
 
     bMinimized = ( nSizeX<=SC_ICONSIZE || nSizeY<=SC_ICONSIZE );
     if ( bMinimized )
@@ -608,7 +607,7 @@ void ScTabView::DoResize( const Point& rOffset, const Size& rSize, BOOL bInner )
         nBarY = aHScrollLeft.GetSizePixel().Height();
         nBarX = aVScrollBottom.GetSizePixel().Width();
 
-        nSize1 = nSizeX + nOverlap;
+        long nSize1 = nSizeX + nOverlap;
 
         long nTabSize = nSize1;
         if (nTabSize < 0) nTabSize = 0;


More information about the Libreoffice-commits mailing list