diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-23 10:48:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-23 13:26:19 +0200 |
commit | 88a874fcb3a3735634c638f34dcb0cc7bd2260ac (patch) | |
tree | 9d4d00f5c29ed08db69b0ff7aa334045cb879b82 /chart2 | |
parent | 11e66edd0e60d55fe5b6d285b919c012ae7500ce (diff) |
convert SfxItemState constants to a proper enum
and while we're at it
- use the enum type all over the place instead of passing around
sal_uInt16
- don't use bitwise logic on enum values
- use enum values instead of numeric constants
Change-Id: I7f24cb4d242e1c00703e7bbcf1a00c18ef1e9fd4
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/tp_AxisLabel.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/controller/dialogs/tp_AxisLabel.cxx b/chart2/source/controller/dialogs/tp_AxisLabel.cxx index 14892aac18ff..6bf9cab13ccf 100644 --- a/chart2/source/controller/dialogs/tp_AxisLabel.cxx +++ b/chart2/source/controller/dialogs/tp_AxisLabel.cxx @@ -153,7 +153,7 @@ void SchAxisLabelTabPage::Reset( const SfxItemSet* rInAttrs ) bCheck = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue(); m_pCbShowDescription->Check( bCheck ); - if( ( aState & SFX_ITEM_DEFAULT ) == 0 ) + if( aState != SFX_ITEM_DEFAULT ) m_pCbShowDescription->Hide(); } @@ -201,7 +201,7 @@ void SchAxisLabelTabPage::Reset( const SfxItemSet* rInAttrs ) bCheck = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue(); m_pCbTextOverlap->Check( bCheck ); - if( ( aState & SFX_ITEM_DEFAULT ) == 0 ) + if( aState != SFX_ITEM_DEFAULT ) m_pCbTextOverlap->Hide(); } @@ -220,7 +220,7 @@ void SchAxisLabelTabPage::Reset( const SfxItemSet* rInAttrs ) bCheck = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue(); m_pCbTextBreak->Check( bCheck ); - if( ( aState & SFX_ITEM_DEFAULT ) == 0 ) + if( aState != SFX_ITEM_DEFAULT ) { m_pCbTextBreak->Hide(); if( ! m_pCbTextOverlap->IsVisible() ) |