diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-24 11:38:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-24 11:41:01 +0200 |
commit | 682b9b33c71066bbf703c22e9689367e7bd569b6 (patch) | |
tree | 98a123ad26a73f6635ff86fdf0d16cfc7f7c33d7 /sc/source/ui/cctrl/cbuttonw.cxx | |
parent | c09d0aa46ceaeb96869eae1a23a86040189472f4 (diff) |
loplugin:constantparam in sc
Change-Id: I8608a6cb47972e9b838cc5ea431863348758ded0
Diffstat (limited to 'sc/source/ui/cctrl/cbuttonw.cxx')
-rw-r--r-- | sc/source/ui/cctrl/cbuttonw.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/cctrl/cbuttonw.cxx b/sc/source/ui/cctrl/cbuttonw.cxx index ad22426020e5..46ebb210cd9c 100644 --- a/sc/source/ui/cctrl/cbuttonw.cxx +++ b/sc/source/ui/cctrl/cbuttonw.cxx @@ -81,7 +81,7 @@ void ScDDComboBoxButton::Draw( const Point& rAt, aInnerRect.Top() = aInnerCenter.Y() - (aInnerSize.Width()>>1); aInnerRect.Bottom()= aInnerCenter.Y() + (aInnerSize.Width()>>1); - ImpDrawArrow( aInnerRect, false/*bState*/ ); + ImpDrawArrow( aInnerRect ); // restore old state pOut->EnableMapMode( bOldEnable ); @@ -95,8 +95,7 @@ void ScDDComboBoxButton::Draw( const Point& rAt, pOut->SetFillColor(); } -void ScDDComboBoxButton::ImpDrawArrow( const Rectangle& rRect, - bool bState ) +void ScDDComboBoxButton::ImpDrawArrow( const Rectangle& rRect ) { // no need to save old line and fill color here (is restored after the call) @@ -115,7 +114,7 @@ void ScDDComboBoxButton::ImpDrawArrow( const Rectangle& rRect, Rectangle aTempRect = aPixRect; const StyleSettings& rSett = Application::GetSettings().GetStyleSettings(); - Color aColor( bState ? COL_LIGHTBLUE : rSett.GetButtonTextColor().GetColor() ); + Color aColor( rSett.GetButtonTextColor().GetColor() ); pOut->SetFillColor( aColor ); pOut->SetLineColor( aColor ); |