diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-10-27 13:28:35 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-10-27 14:25:52 +0100 |
commit | a54734c82a6584da6becadec2d0cb25fbc296624 (patch) | |
tree | ef9039a6a61af4a3d1f705a32f19a85b6161dd57 /sw/source/uibase/config/cfgitems.cxx | |
parent | 3c3257e499ff48e89b58ce722364ca96738970b1 (diff) |
sw: assert SfxPoolItem::operator==
Change-Id: I9b48fc25abcbdeceefd5a86d8305209f312c9976
Diffstat (limited to 'sw/source/uibase/config/cfgitems.cxx')
-rw-r--r-- | sw/source/uibase/config/cfgitems.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/config/cfgitems.cxx b/sw/source/uibase/config/cfgitems.cxx index c9a64b18aa83..2f2138b9b95f 100644 --- a/sw/source/uibase/config/cfgitems.cxx +++ b/sw/source/uibase/config/cfgitems.cxx @@ -78,7 +78,7 @@ SfxPoolItem* SwDocDisplayItem::Clone( SfxItemPool* ) const bool SwDocDisplayItem::operator==( const SfxPoolItem& rAttr ) const { - OSL_ENSURE( SfxPoolItem::operator==(rAttr), "different types" ); + assert(SfxPoolItem::operator==(rAttr)); const SwDocDisplayItem& rItem = (SwDocDisplayItem&)rAttr; @@ -169,7 +169,7 @@ SfxPoolItem* SwElemItem::Clone( SfxItemPool* ) const bool SwElemItem::operator==( const SfxPoolItem& rAttr ) const { - OSL_ENSURE( SfxPoolItem::operator==(rAttr), "different types" ); + assert(SfxPoolItem::operator==(rAttr)); const SwElemItem& rItem = (SwElemItem&)rAttr; @@ -250,7 +250,7 @@ SfxPoolItem* SwAddPrinterItem::Clone( SfxItemPool* ) const bool SwAddPrinterItem::operator==( const SfxPoolItem& rAttr ) const { - OSL_ENSURE( SfxPoolItem::operator==(rAttr), "different types" ); + assert(SfxPoolItem::operator==(rAttr)); const SwAddPrinterItem& rItem = (SwAddPrinterItem&)rAttr; @@ -327,7 +327,7 @@ SfxPoolItem* SwTestItem::Clone( SfxItemPool* ) const bool SwTestItem::operator==( const SfxPoolItem& rAttr ) const { - OSL_ENSURE( SfxPoolItem::operator==(rAttr), "different types" ); + assert(SfxPoolItem::operator==(rAttr)); const SwTestItem& rItem = (const SwTestItem&) rAttr; |