summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-18 19:09:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-18 19:09:04 +0000
commit113f10b2170b14d984e21eac191751005b88ec3f (patch)
tree3cfb25aa2e2e1df77d04ce24fd0f434cc05dac8b /sc/source/ui/view/tabview.cxx
parent6489f81606a97bdf07659ad5e3b02c08f9b56c8f (diff)
cppcheck: can reduce the scope of this variable
Diffstat (limited to 'sc/source/ui/view/tabview.cxx')
-rw-r--r--sc/source/ui/view/tabview.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 02b26e6557f3..3cb41d8b206d 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;