summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/view/viewfunc.cxx4
-rw-r--r--svl/source/items/itempool.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index f64a6328c73c..5a9707c18e09 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -954,8 +954,8 @@ void ScViewFunc::ApplyAttributes( const SfxItemSet* pDialogSet,
{
// if new items are default-items, overwrite the old items:
- bool bDefNewOuter = ( SFX_ITEMS_STATICDEFAULT == pNewOuter->GetKind() );
- bool bDefNewInner = ( SFX_ITEMS_STATICDEFAULT == pNewInner->GetKind() );
+ bool bDefNewOuter = IsStaticDefaultItem(pNewOuter);
+ bool bDefNewInner = IsStaticDefaultItem(pNewInner);
ApplyPatternLines( aNewAttrs,
bDefNewOuter ? pOldOuter : pNewOuter,
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;