summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-11-27 23:41:20 +0100
committerMichael Stahl <mstahl@redhat.com>2014-11-27 23:57:55 +0100
commitc865da007a8d781801ef73612be27f129dd0989b (patch)
treef83b8ef8f05a64ed2bcc5b88af73295d7198c62f
parent9c1a1b98776ca2216d82af303394a09f2bac0471 (diff)
svl: deploy some asserts in SfxItemPool, those are bugs
Change-Id: Ifa28f3b02640720855a6e40ddd7a5f752904e8bd
-rw-r--r--svl/source/items/itempool.cxx2
-rw-r--r--svl/source/items/poolio.cxx2
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;
}