summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-27 10:55:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-27 12:47:54 +0000
commit612fde3b4a54cbeb34f01fb05a7028b172279c5c (patch)
tree6470493dbfc7dea72a3aafdc2ffa6c65815b2260 /vcl
parent947461a9b0c5f5f57135c05643bf5a51260ec36d (diff)
cppcheck: the scope of this variable can be reduced
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/tabctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index b1774513c761..4d9b215ceb21 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -1217,7 +1217,6 @@ void TabControl::ImplPaint( const Rectangle& rRect, bool bLayout )
// Draw the TabPage border
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
Rectangle aCurRect;
- long nTopOff = 1;
aRect.Left() -= TAB_OFFSET;
aRect.Top() -= TAB_OFFSET;
aRect.Right() += TAB_OFFSET;
@@ -1259,6 +1258,7 @@ void TabControl::ImplPaint( const Rectangle& rRect, bool bLayout )
}
else
{
+ long nTopOff = 1;
if ( !(rStyleSettings.GetOptions() & STYLE_OPTION_MONO) )
SetLineColor( rStyleSettings.GetLightColor() );
else