summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svl/source/items/cenumitm.cxx3
-rw-r--r--svl/source/items/cintitem.cxx21
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