diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-01-27 14:50:50 +0100 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-01-27 15:58:28 +0000 |
commit | 70dee11c2e15e90fbd41bf331e67c1d28e094e35 (patch) | |
tree | 9bf3a9c17495788b9b1d7ef23da1b96799e81e6a /sfx2 | |
parent | ac33904d05ce40b5998b3f1b66a1454d049781be (diff) |
use a define for invalid SfxPoolItem
and use helper function IsInvalidItem() more
Change-Id: Ifd651a336a7bd4ef4f945219d765afb827465438
Reviewed-on: https://gerrit.libreoffice.org/33611
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index f9a91c8ab582..c72f30303a3a 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -1357,7 +1357,7 @@ void SfxBindings::UpdateControllers_Impl if ( SfxItemState::DONTCARE == eState ) { // ambiguous - pCache->SetState( SfxItemState::DONTCARE, reinterpret_cast<SfxPoolItem *>(-1) ); + pCache->SetState( SfxItemState::DONTCARE, INVALID_POOL_ITEM ); } else if ( SfxItemState::DEFAULT == eState && SfxItemPool::IsSlot(rFound.nWhichId) ) @@ -1427,7 +1427,7 @@ void SfxBindings::UpdateControllers_Impl else { // ambiguous - pEnumCache->SetState( SfxItemState::DONTCARE, reinterpret_cast<SfxPoolItem *>(-1) ); + pEnumCache->SetState( SfxItemState::DONTCARE, INVALID_POOL_ITEM ); } } |