summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-24 11:42:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-24 11:42:54 +0000
commitb6c9d165924a4ed1db9c529216d1e750395dbec1 (patch)
treee9bb8a08e9cb703524dbd50b2a30414c6c6b6fc0
parent8fd524c62000e30d52a358de652ddf373eb8c352 (diff)
cppcheck: The scope of these variables can be reduced
-rw-r--r--svx/source/tbxctrls/layctrl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx
index e5a5ec7ecd..390a5cd10b 100644
--- a/svx/source/tbxctrls/layctrl.cxx
+++ b/svx/source/tbxctrls/layctrl.cxx
@@ -515,8 +515,6 @@ void ColumnsWindow::MouseMove( const MouseEvent& rMEvt )
void ColumnsWindow::UpdateSize_Impl( long nNewCol )
{
Size aWinSize = GetOutputSizePixel();
- long nMinCol = 0;
- long nMaxCol = 0;
Point aWinPos;// = GetPosPixel();
if ( nWidth <= nNewCol )
@@ -547,6 +545,8 @@ void ColumnsWindow::UpdateSize_Impl( long nNewCol )
Invalidate( Rectangle( 0, aWinSize.Height()-nTextHeight+2,
aWinSize.Width(), aWinSize.Height() ) );
+ long nMinCol = 0, nMaxCol = 0;
+
if ( nNewCol < nCol )
{
nMinCol = nNewCol;