summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-28 20:36:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-28 20:36:27 +0100
commitf016ed2e4f7b8bec79fcaf8e4b566861a7b6ae76 (patch)
treed628350fdb654bd219244196dd9e96c2be44888d /vcl
parent41ffc1ab18d9ea7cc35278970fbe29db70005ab5 (diff)
bNativeOK variable is not necessary
Change-Id: I7e8d56bd3737f228a3a3b76f87023be16effb0ca
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/tabctrl.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index f9df33f05e7d..7ab6b2a4e40f 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -1095,8 +1095,7 @@ void TabControl::ImplPaint( const Rectangle& rRect, bool bLayout )
aRect.Right()+=10;
}
- bool bNativeOK = false;
- if( ! bLayout && (bNativeOK = IsNativeControlSupported( CTRL_TAB_PANE, PART_ENTIRE_CONTROL) ) )
+ if (!bLayout && IsNativeControlSupported(CTRL_TAB_PANE, PART_ENTIRE_CONTROL))
{
const ImplControlValue aControlValue;
@@ -1112,8 +1111,10 @@ void TabControl::ImplPaint( const Rectangle& rRect, bool bLayout )
aClipRgn.Intersect( rRect );
if( !aClipRgn.IsEmpty() )
- bNativeOK = DrawNativeControl( CTRL_TAB_PANE, PART_ENTIRE_CONTROL, aRect, nState,
- aControlValue, OUString() );
+ {
+ DrawNativeControl(CTRL_TAB_PANE, PART_ENTIRE_CONTROL, aRect, nState,
+ aControlValue, OUString());
+ }
}
else
{