From 4c927cc34e05c331c1cebf6885256f31becfb89d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 3 Aug 2022 14:38:29 +0200 Subject: improve assert message Change-Id: Ib51768018f5ed8db89993a162ac8c4b4951b3887 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137748 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/items/itempool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl/source/items/itempool.cxx') 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* 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?!" ); } -- cgit