From 0117a5d34e14ec4976022175ff3807a1f3802d74 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 28 Oct 2016 21:25:23 +0200 Subject: svl: more SfxPoolItem asserts Change-Id: Ic73fe09fc401359f043269fc8e5a1910fc8ddb02 --- svl/source/items/poolitem.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'svl') diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx index a1afa3407f4c..f7d17e1324ff 100644 --- a/svl/source/items/poolitem.cxx +++ b/svl/source/items/poolitem.cxx @@ -40,7 +40,7 @@ SfxPoolItem::SfxPoolItem(sal_uInt16 const nWhich) , m_nWhich(nWhich) , m_nKind(SfxItemKind::NONE) { - DBG_ASSERT(nWhich <= SHRT_MAX, "invalid WhichId"); + assert(nWhich <= SHRT_MAX); #if OSL_DEBUG_LEVEL > 0 ++nItemCount; if ( pw1 && nItemCount>=10000 ) @@ -226,7 +226,8 @@ SfxVoidItem::SfxVoidItem( const SfxVoidItem& rCopy): bool SfxVoidItem::operator==( const SfxPoolItem& rCmp ) const { - DBG_ASSERT( SfxPoolItem::operator==( rCmp ), "unequal type" ); + assert(SfxPoolItem::operator==(rCmp)); + (void) rCmp; return true; } -- cgit