diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-27 23:41:20 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-27 23:57:55 +0100 |
commit | c865da007a8d781801ef73612be27f129dd0989b (patch) | |
tree | f83b8ef8f05a64ed2bcc5b88af73295d7198c62f | |
parent | fdo#70861: cui: fix crash in SvxExtParagraphTabPage (diff) | |
download | core-c865da007a8d781801ef73612be27f129dd0989b.tar.gz core-c865da007a8d781801ef73612be27f129dd0989b.zip |
svl: deploy some asserts in SfxItemPool, those are bugs
Change-Id: Ifa28f3b02640720855a6e40ddd7a5f752904e8bd
-rw-r--r-- | svl/source/items/itempool.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/poolio.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index 855054333706..2cfcb3128ce2 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -878,7 +878,7 @@ const SfxPoolItem& SfxItemPool::GetDefaultItem( sal_uInt16 nWhich ) const { if ( pImp->mpSecondary ) return pImp->mpSecondary->GetDefaultItem( nWhich ); - SFX_ASSERT( false, nWhich, "unknown which - dont ask me for defaults" ); + assert(!"unknown which - dont ask me for defaults"); } DBG_ASSERT( pImp->ppStaticDefaults, "no defaults known - dont ask me for defaults" ); diff --git a/svl/source/items/poolio.cxx b/svl/source/items/poolio.cxx index cf719786a286..4a026cf1e1a3 100644 --- a/svl/source/items/poolio.cxx +++ b/svl/source/items/poolio.cxx @@ -695,7 +695,7 @@ SvStream &SfxItemPool::Load(SvStream &rStream) sal_uInt16 SfxItemPool::GetIndex_Impl(sal_uInt16 nWhich) const { - DBG_ASSERT(nWhich >= pImp->mnStart && nWhich <= pImp->mnEnd, "WhichId not within the Pool range"); + assert(nWhich >= pImp->mnStart && nWhich <= pImp->mnEnd); return nWhich - pImp->mnStart; } |