summaryrefslogtreecommitdiffstats
path: root/svl/source/items/itempool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/items/itempool.cxx')
-rw-r--r--svl/source/items/itempool.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 4cb9ccebabbd..2b3d9ff4685f 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -812,16 +812,9 @@ void SfxItemPool::Remove( const SfxPoolItem& rItem )
SfxPoolItem*& p = (*pItemArr)[nIdx];
assert(p == &rItem);
- if ( p->GetRefCount() ) //!
- ReleaseRef( *p );
- else
- {
- assert(false && "removing Item without ref");
- }
+ assert(p->GetRefCount() && "removing Item without ref");
- // FIXME: Hack, for as long as we have problems with the Outliner
- // See other MI-REF
- if ( 0 == p->GetRefCount() && nWhich < 4000 )
+ if (0 == ReleaseRef(*p))
{
DELETEZ(p);