diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-31 19:59:29 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-09-01 06:38:06 +0000 |
commit | 95bfa2c03d9dacd73670071c8108285dfc0f7830 (patch) | |
tree | 44c0ff707adc0f47f44f784ea5a18954e4463c39 /svl | |
parent | d22525fcb03497a38ef5c9308ae7b50416ea9fb2 (diff) |
use SfxItemPool::IsSlot instead of custom implementation
Change-Id: I435fb78f10f361120ee1865465dab93aa4661806
Reviewed-on: https://gerrit.libreoffice.org/28565
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/itempool.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index fc250c36914f..90a75fac1ffd 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -621,7 +621,7 @@ const SfxPoolItem& SfxItemPool::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich nWhich = rItem.Which(); // Find correct Secondary Pool - bool bSID = nWhich > SFX_WHICH_MAX; + bool bSID = IsSlot(nWhich); if ( !bSID && !IsInRange(nWhich) ) { if ( pImpl->mpSecondary ) @@ -767,7 +767,7 @@ void SfxItemPool::Remove( const SfxPoolItem& rItem ) // Find correct Secondary Pool const sal_uInt16 nWhich = rItem.Which(); - bool bSID = nWhich > SFX_WHICH_MAX; + bool bSID = IsSlot(nWhich); if ( !bSID && !IsInRange(nWhich) ) { if ( pImpl->mpSecondary ) |