From eac1468db541feafcbabb88b59d3e555845bd3b2 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Wed, 31 Aug 2016 22:44:53 +0200 Subject: use IsStaticDefaultItem from poolitem.hxx instead of custom checks Change-Id: Ic49a940d83e5b8944bd724203bb2045bb1eb22b9 Reviewed-on: https://gerrit.libreoffice.org/28567 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/items/itempool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl') diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index 90a75fac1ffd..ecde96afe014 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -795,7 +795,7 @@ void SfxItemPool::Remove( const SfxPoolItem& rItem ) assert(rItem.GetRefCount() && "RefCount == 0, Remove impossible"); // Static Defaults are just there - if ( rItem.GetKind() == SFX_ITEMS_STATICDEFAULT && + if ( IsStaticDefaultItem(&rItem) && &rItem == *( pImpl->ppStaticDefaults + GetIndex_Impl(nWhich) ) ) return; -- cgit