summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svl/source/items/itempool.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 679a097adf2f..ef2a481befb5 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -413,10 +413,11 @@ void SfxItemPool::SetSecondaryPool( SfxItemPool *pPool )
break;
if (rSecArrayPtr)
{
- for (auto const& rItemPtr : *rSecArrayPtr)
- if (!rItemPtr)
+ for (const SfxPoolItem* pItem : *rSecArrayPtr)
+ if (pItem)
{
- OSL_FAIL( "old secondary pool must be empty" );
+ SAL_WARN("svl.items", "old secondary pool: " << pImpl->mpSecondary->pImpl->aName
+ << " of pool: " << pImpl->aName << " must be empty.");
bOK = false;
break;
}