svl/source/items/itempool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4c927cc34e05c331c1cebf6885256f31becfb89d Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Aug 3 14:38:29 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Aug 3 16:11:04 2022 +0200 improve assert message Change-Id: Ib51768018f5ed8db89993a162ac8c4b4951b3887 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137748 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index 781d591eaff3..601e90aee862 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -317,7 +317,7 @@ void SfxItemPool::SetDefaults( std::vector<SfxPoolItem*>* pDefaults ) for ( sal_uInt16 n = 0; n <= pImpl->mnEnd - pImpl->mnStart; ++n ) { assert( ((*pImpl->mpStaticDefaults)[n]->Which() == n + pImpl->mnStart) - && "static defaults not sorted" ); + && "items ids in pool-ranges and in static-defaults do not match" ); (*pImpl->mpStaticDefaults)[n]->SetKind(SfxItemKind::StaticDefault); DBG_ASSERT( pImpl->maPoolItemArrays[n].empty(), "defaults with setitems with items?!" ); }