diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-18 20:16:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-20 07:16:46 +0000 |
commit | 67c9d054517fc3b5cbc203c330eedef4b50f0e57 (patch) | |
tree | 1fad773f770e4ee4265bb05ba77d7f3084aedd3b /svtools | |
parent | 8091cf383a122f2348d6e25df90fc26579fe6ef7 (diff) |
fdo#84938: replace TIB_ constants with enum
Change-Id: I435ce2331fb49e7ce9fe97bdfddfaef706759a84
Reviewed-on: https://gerrit.libreoffice.org/12023
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/generictoolboxcontroller.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/uno/generictoolboxcontroller.cxx b/svtools/source/uno/generictoolboxcontroller.cxx index b77a309afb37..1c78816e63af 100644 --- a/svtools/source/uno/generictoolboxcontroller.cxx +++ b/svtools/source/uno/generictoolboxcontroller.cxx @@ -137,8 +137,8 @@ throw ( RuntimeException, std::exception ) { m_pToolbox->EnableItem( m_nID, Event.IsEnabled ); - sal_uInt16 nItemBits = m_pToolbox->GetItemBits( m_nID ); - nItemBits &= ~TIB_CHECKABLE; + ToolBoxItemBits nItemBits = m_pToolbox->GetItemBits( m_nID ); + nItemBits &= ~ToolBoxItemBits::CHECKABLE; TriState eTri = TRISTATE_FALSE; bool bValue; @@ -152,7 +152,7 @@ throw ( RuntimeException, std::exception ) m_pToolbox->CheckItem( m_nID, bValue ); if ( bValue ) eTri = TRISTATE_TRUE; - nItemBits |= TIB_CHECKABLE; + nItemBits |= ToolBoxItemBits::CHECKABLE; } else if ( Event.State >>= aStrValue ) { @@ -161,7 +161,7 @@ throw ( RuntimeException, std::exception ) else if ( Event.State >>= aItemState ) { eTri = TRISTATE_INDET; - nItemBits |= TIB_CHECKABLE; + nItemBits |= ToolBoxItemBits::CHECKABLE; } m_pToolbox->SetItemState( m_nID, eTri ); |