diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-10-07 23:01:59 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-10-08 00:02:48 +0200 |
commit | a97d2c7a4248dc8bd6b3b3c28d07cf4a573ba074 (patch) | |
tree | 91ab2b616c141e0a5728e241cb687aa35c19e424 /svl/source/items | |
parent | 5227e5b269be52d4ab614db5f1b3a52588b56404 (diff) |
svl: convert some DBG_ASSERT to assert
Change-Id: Id859f5584b52849d5a40e0f9946e0bf58761fbcb
Diffstat (limited to 'svl/source/items')
-rw-r--r-- | svl/source/items/cenumitm.cxx | 3 | ||||
-rw-r--r-- | svl/source/items/cintitem.cxx | 21 |
2 files changed, 8 insertions, 16 deletions
diff --git a/svl/source/items/cenumitm.cxx b/svl/source/items/cenumitm.cxx index 183c7f1f967a..8603d2b4851a 100644 --- a/svl/source/items/cenumitm.cxx +++ b/svl/source/items/cenumitm.cxx @@ -161,8 +161,7 @@ SfxBoolItem::SfxBoolItem(sal_uInt16 const nWhich, SvStream & rStream) // virtual bool SfxBoolItem::operator ==(const SfxPoolItem & rItem) const { - DBG_ASSERT(dynamic_cast<const SfxBoolItem*>( &rItem ) != nullptr, - "SfxBoolItem::operator ==(): Bad type"); + assert(dynamic_cast<const SfxBoolItem*>(&rItem) != nullptr); return m_bValue == static_cast< SfxBoolItem const * >(&rItem)->m_bValue; } diff --git a/svl/source/items/cintitem.cxx b/svl/source/items/cintitem.cxx index 0ce5f256f32f..a6c73d0bc48c 100644 --- a/svl/source/items/cintitem.cxx +++ b/svl/source/items/cintitem.cxx @@ -26,8 +26,7 @@ // virtual bool CntByteItem::operator ==(const SfxPoolItem & rItem) const { - DBG_ASSERT(dynamic_cast<const CntByteItem*>( &rItem ) != nullptr, - "CntByteItem::operator ==(): Bad type"); + assert(dynamic_cast<const CntByteItem*>(&rItem) != nullptr); return m_nValue == (static_cast< const CntByteItem * >(&rItem))->m_nValue; } @@ -95,10 +94,8 @@ CntUInt16Item::CntUInt16Item(sal_uInt16 which, SvStream & rStream) : // virtual bool CntUInt16Item::operator ==(const SfxPoolItem & rItem) const { - DBG_ASSERT(dynamic_cast< const CntUInt16Item* >(&rItem) != nullptr, - "CntUInt16Item::operator ==(): Bad type"); - return m_nValue == (static_cast< const CntUInt16Item * >(&rItem))-> - m_nValue; + assert(dynamic_cast<const CntUInt16Item*>(&rItem) != nullptr); + return m_nValue == static_cast<const CntUInt16Item *>(&rItem)->m_nValue; } // virtual @@ -165,10 +162,8 @@ CntInt32Item::CntInt32Item(sal_uInt16 which, SvStream & rStream) // virtual bool CntInt32Item::operator ==(const SfxPoolItem & rItem) const { - DBG_ASSERT(dynamic_cast< const CntInt32Item*>(&rItem) != nullptr, - "CntInt32Item::operator ==(): Bad type"); - return m_nValue == (static_cast< const CntInt32Item * >(&rItem))-> - m_nValue; + assert(dynamic_cast<const CntInt32Item*>(&rItem) != nullptr); + return m_nValue == static_cast<const CntInt32Item *>(&rItem)->m_nValue; } // virtual @@ -234,10 +229,8 @@ CntUInt32Item::CntUInt32Item(sal_uInt16 which, SvStream & rStream) : // virtual bool CntUInt32Item::operator ==(const SfxPoolItem & rItem) const { - DBG_ASSERT(dynamic_cast< const CntUInt32Item* >(&rItem) != nullptr, - "CntUInt32Item::operator ==(): Bad type"); - return m_nValue == (static_cast< const CntUInt32Item * >(&rItem))-> - m_nValue; + assert(dynamic_cast<const CntUInt32Item*>(&rItem) != nullptr); + return m_nValue == static_cast<const CntUInt32Item *>(&rItem)->m_nValue; } // virtual |