diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-16 16:08:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-18 11:02:45 +0000 |
commit | e592877844573fa5ab934b7ab3b13aaa33ed621d (patch) | |
tree | 37138edadc35f0fe1a4ee87bcce66e4d756af469 /vcl/osx/salnativewidgets.cxx | |
parent | 17d7ac5c1a06d29cbeeb3efd245ebf2e6725da12 (diff) |
loplugin:unusedenumvalues
Change-Id: Icf17f936ce6d07d0e152252833c8645cf9b1163b
Reviewed-on: https://gerrit.libreoffice.org/28942
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/osx/salnativewidgets.cxx')
-rw-r--r-- | vcl/osx/salnativewidgets.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx index bc0f390d0fc1..a9d263f3c476 100644 --- a/vcl/osx/salnativewidgets.cxx +++ b/vcl/osx/salnativewidgets.cxx @@ -328,15 +328,9 @@ UInt32 AquaSalGraphics::getState( ControlState nState ) const bool bDrawActive = mpFrame == nullptr || [mpFrame->getNSWindow() isKeyWindow]; if( !(nState & ControlState::ENABLED) || ! bDrawActive ) { - if( ! (nState & ControlState::HIDDEN) ) - return kThemeStateInactive; - else - return kThemeStateUnavailableInactive; + return kThemeStateInactive; } - if( nState & ControlState::HIDDEN ) - return kThemeStateUnavailable; - if( nState & ControlState::PRESSED ) return kThemeStatePressed; |