summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-01-27 14:50:50 +0100
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2017-01-27 15:58:28 +0000
commit70dee11c2e15e90fbd41bf331e67c1d28e094e35 (patch)
tree9bf3a9c17495788b9b1d7ef23da1b96799e81e6a /sfx2
parentmove these into the member init list (diff)
downloadcore-70dee11c2e15e90fbd41bf331e67c1d28e094e35.tar.gz
core-70dee11c2e15e90fbd41bf331e67c1d28e094e35.zip
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.cxx4
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 );
}
}