diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-10-28 21:25:23 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-10-28 22:49:28 +0200 |
commit | 0117a5d34e14ec4976022175ff3807a1f3802d74 (patch) | |
tree | 2a482cbaf5fe1e95bfdf26593f97990ea26a1137 /svl | |
parent | 855e69d37eec08efdf9952ec3fb5424cf69e9f54 (diff) |
svl: more SfxPoolItem asserts
Change-Id: Ic73fe09fc401359f043269fc8e5a1910fc8ddb02
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/poolitem.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |