diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-04 11:35:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-04 11:48:05 +0200 |
commit | 03614918c028e82df353308837864c6fc7ff992c (patch) | |
tree | 631bc863274856e739e9d15c05f302e87383e751 /sc/source/ui/cctrl/cbuttonw.cxx | |
parent | fb6c99f21e03afb85d00459ca1e1abb07e71d126 (diff) |
loplugin:unuseddefaultparam in sc
Change-Id: Id461fc600bec5fe372875c2dcf405997fcf9f0b4
Diffstat (limited to 'sc/source/ui/cctrl/cbuttonw.cxx')
-rw-r--r-- | sc/source/ui/cctrl/cbuttonw.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sc/source/ui/cctrl/cbuttonw.cxx b/sc/source/ui/cctrl/cbuttonw.cxx index 47b38332482f..436aa4ecd426 100644 --- a/sc/source/ui/cctrl/cbuttonw.cxx +++ b/sc/source/ui/cctrl/cbuttonw.cxx @@ -50,8 +50,7 @@ void ScDDComboBoxButton::SetOptSizePixel() void ScDDComboBoxButton::Draw( const Point& rAt, const Size& rSize, - bool bState, - bool bBtnIn /* = false */ ) + bool bState ) { if ( rSize.Width() == 0 || rSize.Height() == 0 ) return; @@ -70,13 +69,7 @@ void ScDDComboBoxButton::Draw( const Point& rAt, DecorationView aDecoView( pOut); - DrawButtonFlags nButtonStyle = DrawButtonFlags::Default; - if( bBtnIn ) // gedrueckt? - { - nButtonStyle = DrawButtonFlags::Pressed; - } - - aInnerRect=aDecoView.DrawButton( aBtnRect, nButtonStyle ); + aInnerRect=aDecoView.DrawButton( aBtnRect, DrawButtonFlags::Default ); aInnerRect.Left() += 1; aInnerRect.Top() += 1; |