summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-03 14:38:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-03 16:11:04 +0200
commit4c927cc34e05c331c1cebf6885256f31becfb89d (patch)
tree35c773f918e031d79e7d700715f6a2c790cf581b /svl/source
parente40f9ec9680a350e8e44dcbbd7decbe9603bcc51 (diff)
improve assert message
Change-Id: Ib51768018f5ed8db89993a162ac8c4b4951b3887 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137748 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/items/itempool.cxx2
1 files changed, 1 insertions, 1 deletions
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?!" );
}