Kaydet (Commit) a6b1d124 authored tarafından Noel Grandin's avatar Noel Grandin

fix assert in SfxItemPool::PutImpl

Change-Id: I6e9abe241c7a001b503a9e3006d08c0dfc52fcda
Reviewed-on: https://gerrit.libreoffice.org/71676
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 743a9b22
......@@ -651,7 +651,7 @@ const SfxPoolItem& SfxItemPool::PutImpl( const SfxPoolItem& rItem, sal_uInt16 nW
if (**itr == rItem)
{
AddRef(**itr);
assert(!bPassingOwnership && "can't be passing ownership and have the item already in the pool");
assert((!bPassingOwnership || (&rItem != *itr)) && "can't be passing ownership and have the item already in the pool");
return **itr;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment