summaryrefslogtreecommitdiff
path: root/vcl/source/control/scrbar.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/scrbar.cxx')
-rw-r--r--vcl/source/control/scrbar.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index 32d977702fde..dc7213001e28 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -486,7 +486,7 @@ bool ScrollBar::ImplDrawNative( sal_uInt16 nDrawFlags )
if( !bNativeOK )
return false;
- bool bHorz = (GetStyle() & WB_HORZ ? true : false);
+ bool bHorz = (GetStyle() & WB_HORZ) ? true : false;
// Draw the entire background if the control supports it
if( IsNativeControlSupported(CTRL_SCROLLBAR, bHorz ? PART_DRAW_BACKGROUND_HORZ : PART_DRAW_BACKGROUND_VERT) )
@@ -802,7 +802,7 @@ void ScrollBar::ImplDoMouseAction( const Point& rMousePos, bool bCallAction )
{
sal_uInt16 nOldStateFlags = mnStateFlags;
bool bAction = false;
- bool bHorizontal = ( GetStyle() & WB_HORZ )? true: false;
+ bool bHorizontal = ( GetStyle() & WB_HORZ ) ? true: false;
bool bIsInside = false;
Point aPoint( 0, 0 );
@@ -912,7 +912,7 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt )
{
const Point& rMousePos = rMEvt.GetPosPixel();
sal_uInt16 nTrackFlags = 0;
- bool bHorizontal = ( GetStyle() & WB_HORZ )? true: false;
+ bool bHorizontal = ( GetStyle() & WB_HORZ ) ? true: false;
bool bIsInside = false;
bool bDragToMouse = false;
@@ -1247,7 +1247,7 @@ void ScrollBar::DataChanged( const DataChangedEvent& rDCEvt )
Rectangle* ScrollBar::ImplFindPartRect( const Point& rPt )
{
- bool bHorizontal = ( GetStyle() & WB_HORZ )? true: false;
+ bool bHorizontal = ( GetStyle() & WB_HORZ ) ? true: false;
bool bIsInside = false;
Point aPoint( 0, 0 );