Kaydet (Commit) c865da00 authored tarafından Michael Stahl's avatar Michael Stahl

svl: deploy some asserts in SfxItemPool, those are bugs

Change-Id: Ifa28f3b02640720855a6e40ddd7a5f752904e8bd
üst 9c1a1b98
...@@ -878,7 +878,7 @@ const SfxPoolItem& SfxItemPool::GetDefaultItem( sal_uInt16 nWhich ) const ...@@ -878,7 +878,7 @@ const SfxPoolItem& SfxItemPool::GetDefaultItem( sal_uInt16 nWhich ) const
{ {
if ( pImp->mpSecondary ) if ( pImp->mpSecondary )
return pImp->mpSecondary->GetDefaultItem( nWhich ); 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" ); DBG_ASSERT( pImp->ppStaticDefaults, "no defaults known - dont ask me for defaults" );
......
...@@ -695,7 +695,7 @@ SvStream &SfxItemPool::Load(SvStream &rStream) ...@@ -695,7 +695,7 @@ SvStream &SfxItemPool::Load(SvStream &rStream)
sal_uInt16 SfxItemPool::GetIndex_Impl(sal_uInt16 nWhich) const 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; return nWhich - pImp->mnStart;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment