summaryrefslogtreecommitdiff
path: root/svl/source/items/poolcach.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/items/poolcach.cxx')
-rw-r--r--svl/source/items/poolcach.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svl/source/items/poolcach.cxx b/svl/source/items/poolcach.cxx
index 01f238caa3fb..05401669216c 100644
--- a/svl/source/items/poolcach.cxx
+++ b/svl/source/items/poolcach.cxx
@@ -88,9 +88,7 @@ const SfxSetItem& SfxItemPoolCache::ApplyTo( const SfxSetItem &rOrigItem )
}
else
pNewItem->GetItemSet().Put( *pSetToPut );
- const SfxSetItem* pNewPoolItem = &pPool->Put( *pNewItem );
- DBG_ASSERT( pNewPoolItem != pNewItem.get(), "Pool: same in and out?" );
- pNewItem.reset();
+ const SfxSetItem* pNewPoolItem = &pPool->Put( std::move(pNewItem) );
// Adapt refcount; one each for the cache
pNewPoolItem->AddRef( pNewPoolItem != &rOrigItem ? 2 : 1 );