summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-10-27 13:28:35 +0100
committerMichael Stahl <mstahl@redhat.com>2014-10-27 14:25:52 +0100
commita54734c82a6584da6becadec2d0cb25fbc296624 (patch)
treeef9039a6a61af4a3d1f705a32f19a85b6161dd57
parent3c3257e499ff48e89b58ce722364ca96738970b1 (diff)
sw: assert SfxPoolItem::operator==
Change-Id: I9b48fc25abcbdeceefd5a86d8305209f312c9976
-rw-r--r--sw/source/core/attr/cellatr.cxx6
-rw-r--r--sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx6
-rw-r--r--sw/source/core/layout/atrfrm.cxx28
-rw-r--r--sw/source/core/para/paratr.cxx4
-rw-r--r--sw/source/core/tox/tox.cxx2
-rw-r--r--sw/source/core/txtnode/atrfld.cxx2
-rw-r--r--sw/source/core/txtnode/atrflyin.cxx2
-rw-r--r--sw/source/core/txtnode/atrftn.cxx2
-rw-r--r--sw/source/core/txtnode/atrref.cxx2
-rw-r--r--sw/source/core/txtnode/fmtatr2.cxx10
-rw-r--r--sw/source/uibase/chrdlg/ccoll.cxx2
-rw-r--r--sw/source/uibase/config/cfgitems.cxx8
-rw-r--r--sw/source/uibase/utlui/uiitems.cxx6
13 files changed, 40 insertions, 40 deletions
diff --git a/sw/source/core/attr/cellatr.cxx b/sw/source/core/attr/cellatr.cxx
index a497e6b7dc05..9bc82961108d 100644
--- a/sw/source/core/attr/cellatr.cxx
+++ b/sw/source/core/attr/cellatr.cxx
@@ -38,7 +38,7 @@ SwTblBoxNumFormat::SwTblBoxNumFormat( sal_uInt32 nFormat, bool bFlag )
bool SwTblBoxNumFormat::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "no matching attributes" );
+ assert(SfxPoolItem::operator==(rAttr));
return GetValue() == ( (SwTblBoxNumFormat&) rAttr ).GetValue() &&
bAuto == ( (SwTblBoxNumFormat&) rAttr ).bAuto;
}
@@ -57,7 +57,7 @@ SwTblBoxFormula::SwTblBoxFormula( const OUString& rFormula )
bool SwTblBoxFormula::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return GetFormula() == ( (SwTblBoxFormula&) rAttr ).GetFormula() &&
pDefinedIn == ( (SwTblBoxFormula&) rAttr ).pDefinedIn;
}
@@ -202,7 +202,7 @@ SwTblBoxValue::SwTblBoxValue( const double nVal )
bool SwTblBoxValue::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==(rAttr), "SwTblBoxValue: item not equal" );
+ assert(SfxPoolItem::operator==(rAttr));
SwTblBoxValue const& rOther( static_cast<SwTblBoxValue const&>(rAttr) );
// items with NaN should be equal to enable pooling
return ::rtl::math::isNan( nValue )
diff --git a/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx b/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx
index 7b8fd3b25e2b..ec44bb2cbbea 100644
--- a/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx
+++ b/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx
@@ -48,11 +48,11 @@ SwFmtWrapInfluenceOnObjPos& SwFmtWrapInfluenceOnObjPos::operator=( const SwFmtWr
return *this;
}
-bool SwFmtWrapInfluenceOnObjPos::operator==( const SfxPoolItem& _rAttr ) const
+bool SwFmtWrapInfluenceOnObjPos::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( _rAttr ), "no matching attributes" );
+ assert(SfxPoolItem::operator==(rAttr));
return ( mnWrapInfluenceOnPosition ==
- static_cast<const SwFmtWrapInfluenceOnObjPos&>(_rAttr).
+ static_cast<const SwFmtWrapInfluenceOnObjPos&>(rAttr).
GetWrapInfluenceOnObjPos() );
}
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index f8531511f01f..d9ffa19bfa1d 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -198,7 +198,7 @@ SwFmtFrmSize& SwFmtFrmSize::operator=( const SwFmtFrmSize& rCpy )
bool SwFmtFrmSize::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return( m_eFrmHeightType == ((SwFmtFrmSize&)rAttr).m_eFrmHeightType &&
m_eFrmWidthType == ((SwFmtFrmSize&)rAttr).m_eFrmWidthType &&
m_aSize == ((SwFmtFrmSize&)rAttr).GetSize()&&
@@ -464,7 +464,7 @@ SwFmtHeader::SwFmtHeader( bool bOn )
bool SwFmtHeader::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return ( GetRegisteredIn() == ((SwFmtHeader&)rAttr).GetRegisteredIn() &&
bActive == ((SwFmtHeader&)rAttr).IsActive() );
}
@@ -514,7 +514,7 @@ void SwFmtFooter::RegisterToFormat( SwFmt& rFmt )
bool SwFmtFooter::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return ( GetRegisteredIn() == ((SwFmtFooter&)rAttr).GetRegisteredIn() &&
bActive == ((SwFmtFooter&)rAttr).IsActive() );
}
@@ -551,7 +551,7 @@ void SwFmtCntnt::SetNewCntntIdx( const SwNodeIndex *pIdx )
bool SwFmtCntnt::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
if( (bool)pStartNode != (bool)((SwFmtCntnt&)rAttr).pStartNode )
return false;
if( pStartNode )
@@ -602,7 +602,7 @@ bool SwFmtPageDesc::KnowsPageDesc() const
bool SwFmtPageDesc::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return ( pDefinedIn == ((SwFmtPageDesc&)rAttr).pDefinedIn ) &&
( oNumOffset == ((SwFmtPageDesc&)rAttr).oNumOffset ) &&
( GetPageDesc() == ((SwFmtPageDesc&)rAttr).GetPageDesc() );
@@ -829,7 +829,7 @@ SwFmtCol::SwFmtCol()
bool SwFmtCol::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "no equal attributes" );
+ assert(SfxPoolItem::operator==(rAttr));
const SwFmtCol &rCmp = (const SwFmtCol&)rAttr;
if( !(m_eLineStyle == rCmp.m_eLineStyle &&
m_nLineWidth == rCmp.m_nLineWidth &&
@@ -1112,7 +1112,7 @@ SwFmtSurround::SwFmtSurround( const SwFmtSurround &rCpy ) :
bool SwFmtSurround::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return ( GetValue() == ((SwFmtSurround&)rAttr).GetValue() &&
bAnchorOnly== ((SwFmtSurround&)rAttr).bAnchorOnly &&
bContour== ((SwFmtSurround&)rAttr).bContour &&
@@ -1270,7 +1270,7 @@ SwFmtVertOrient::SwFmtVertOrient( SwTwips nY, sal_Int16 eVert,
bool SwFmtVertOrient::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "not the same attributes" );
+ assert(SfxPoolItem::operator==(rAttr));
return ( m_nYPos == ((SwFmtVertOrient&)rAttr).m_nYPos &&
m_eOrient == ((SwFmtVertOrient&)rAttr).m_eOrient &&
m_eRelation == ((SwFmtVertOrient&)rAttr).m_eRelation );
@@ -1353,7 +1353,7 @@ SwFmtHoriOrient::SwFmtHoriOrient( SwTwips nX, sal_Int16 eHori,
bool SwFmtHoriOrient::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return ( nXPos == ((SwFmtHoriOrient&)rAttr).nXPos &&
eOrient == ((SwFmtHoriOrient&)rAttr).eOrient &&
eRelation == ((SwFmtHoriOrient&)rAttr).eRelation &&
@@ -1492,7 +1492,7 @@ SwFmtAnchor& SwFmtAnchor::operator=(const SwFmtAnchor& rAnchor)
bool SwFmtAnchor::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
SwFmtAnchor const& rFmtAnchor(static_cast<SwFmtAnchor const&>(rAttr));
// OD 2004-05-05 #i28701# - Note: <mnOrder> hasn't to be considered.
return ( nAnchorId == rFmtAnchor.GetAnchorId() &&
@@ -1661,7 +1661,7 @@ SwFmtURL::~SwFmtURL()
bool SwFmtURL::operator==( const SfxPoolItem &rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "not the same attributes" );
+ assert(SfxPoolItem::operator==(rAttr));
const SwFmtURL &rCmp = (SwFmtURL&)rAttr;
bool bRet = bIsServerMap == rCmp.IsServerMap() &&
sURL == rCmp.GetURL() &&
@@ -1967,7 +1967,7 @@ SfxPoolItem* SwFmtEndAtTxtEnd::Clone( SfxItemPool* ) const
bool SwFmtChain::operator==( const SfxPoolItem &rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return GetPrev() == ((SwFmtChain&)rAttr).GetPrev() &&
GetNext() == ((SwFmtChain&)rAttr).GetNext();
@@ -2041,7 +2041,7 @@ SwFmtLineNumber::~SwFmtLineNumber()
bool SwFmtLineNumber::operator==( const SfxPoolItem &rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return nStartValue == ((SwFmtLineNumber&)rAttr).GetStartValue() &&
bCountLines == ((SwFmtLineNumber&)rAttr).IsCount();
@@ -2115,7 +2115,7 @@ SwTextGridItem::~SwTextGridItem()
bool SwTextGridItem::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
SwTextGridItem const& rOther(static_cast<SwTextGridItem const&>(rAttr));
return m_eGridType == rOther.GetGridType()
&& m_nLines == rOther.GetLines()
diff --git a/sw/source/core/para/paratr.cxx b/sw/source/core/para/paratr.cxx
index 028d3e8c0c36..c5daf58c02ac 100644
--- a/sw/source/core/para/paratr.cxx
+++ b/sw/source/core/para/paratr.cxx
@@ -108,7 +108,7 @@ bool SwFmtDrop::GetInfo( SfxPoolItem& ) const
bool SwFmtDrop::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "No mathing attributes" );
+ assert(SfxPoolItem::operator==(rAttr));
return ( nLines == ((SwFmtDrop&)rAttr).GetLines() &&
nChars == ((SwFmtDrop&)rAttr).GetChars() &&
nDistance == ((SwFmtDrop&)rAttr).GetDistance() &&
@@ -217,7 +217,7 @@ SfxPoolItem* SwNumRuleItem::Clone( SfxItemPool * ) const
}
bool SwNumRuleItem::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "No matching attributes" );
+ assert(SfxPoolItem::operator==(rAttr));
return GetValue() == ((SwNumRuleItem&)rAttr).GetValue();
}
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index bfa6cb226851..100b83b0b6b2 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -141,7 +141,7 @@ void SwTOXMark::RegisterToTOXType(SwTOXType& rType)
bool SwTOXMark::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "Attributes are not the same" );
+ assert(SfxPoolItem::operator==(rAttr));
return GetRegisteredIn() == ((SwTOXMark&)rAttr).GetRegisteredIn();
}
diff --git a/sw/source/core/txtnode/atrfld.cxx b/sw/source/core/txtnode/atrfld.cxx
index 6455a193aec9..73c4d4c2d3ce 100644
--- a/sw/source/core/txtnode/atrfld.cxx
+++ b/sw/source/core/txtnode/atrfld.cxx
@@ -185,7 +185,7 @@ void SwFmtFld::ClearTxtFld()
bool SwFmtFld::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return ( ( mpField && ((SwFmtFld&)rAttr).GetField()
&& mpField->GetTyp() == ((SwFmtFld&)rAttr).GetField()->GetTyp()
&& mpField->GetFormat() == ((SwFmtFld&)rAttr).GetField()->GetFormat() ) )
diff --git a/sw/source/core/txtnode/atrflyin.cxx b/sw/source/core/txtnode/atrflyin.cxx
index 0250326abb9c..a961b6420779 100644
--- a/sw/source/core/txtnode/atrflyin.cxx
+++ b/sw/source/core/txtnode/atrflyin.cxx
@@ -44,7 +44,7 @@ SwFmtFlyCnt::SwFmtFlyCnt( SwFrmFmt *pFrmFmt )
bool SwFmtFlyCnt::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return( pTxtAttr && ((SwFmtFlyCnt&)rAttr).pTxtAttr &&
pTxtAttr->GetStart() == ((SwFmtFlyCnt&)rAttr).pTxtAttr->GetStart() &&
pFmt == ((SwFmtFlyCnt&)rAttr).GetFrmFmt() );
diff --git a/sw/source/core/txtnode/atrftn.cxx b/sw/source/core/txtnode/atrftn.cxx
index e4dcdc6b6c6e..0248f6bb6e2c 100644
--- a/sw/source/core/txtnode/atrftn.cxx
+++ b/sw/source/core/txtnode/atrftn.cxx
@@ -128,7 +128,7 @@ SwFmtFtn::SwFmtFtn( bool bEndNote )
bool SwFmtFtn::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return m_nNumber == ((SwFmtFtn&)rAttr).m_nNumber &&
m_aNumber == ((SwFmtFtn&)rAttr).m_aNumber &&
m_bEndNote == ((SwFmtFtn&)rAttr).m_bEndNote;
diff --git a/sw/source/core/txtnode/atrref.cxx b/sw/source/core/txtnode/atrref.cxx
index 48c87a474656..db7ce9d28a0f 100644
--- a/sw/source/core/txtnode/atrref.cxx
+++ b/sw/source/core/txtnode/atrref.cxx
@@ -46,7 +46,7 @@ SwFmtRefMark::SwFmtRefMark( const SwFmtRefMark& rAttr )
bool SwFmtRefMark::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return aRefName == ((SwFmtRefMark&)rAttr).aRefName;
}
diff --git a/sw/source/core/txtnode/fmtatr2.cxx b/sw/source/core/txtnode/fmtatr2.cxx
index 2119610ce978..efbfe7742844 100644
--- a/sw/source/core/txtnode/fmtatr2.cxx
+++ b/sw/source/core/txtnode/fmtatr2.cxx
@@ -73,7 +73,7 @@ SwFmtCharFmt::~SwFmtCharFmt() {}
bool SwFmtCharFmt::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return GetCharFmt() == ((SwFmtCharFmt&)rAttr).GetCharFmt();
}
@@ -124,7 +124,7 @@ SwFmtAutoFmt::~SwFmtAutoFmt()
bool SwFmtAutoFmt::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "different attributes" );
+ assert(SfxPoolItem::operator==(rAttr));
return mpHandle == ((SwFmtAutoFmt&)rAttr).mpHandle;
}
@@ -198,7 +198,7 @@ SwFmtINetFmt::~SwFmtINetFmt()
bool SwFmtINetFmt::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
bool bRet = SfxPoolItem::operator==( (SfxPoolItem&) rAttr )
&& msURL == ((SwFmtINetFmt&)rAttr).msURL
&& msHyperlinkName == ((SwFmtINetFmt&)rAttr).msHyperlinkName
@@ -421,7 +421,7 @@ SwFmtRuby& SwFmtRuby::operator=( const SwFmtRuby& rAttr )
bool SwFmtRuby::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+ assert(SfxPoolItem::operator==(rAttr));
return sRubyTxt == ((SwFmtRuby&)rAttr).sRubyTxt &&
sCharFmtName == ((SwFmtRuby&)rAttr).sCharFmtName &&
nCharFmtId == ((SwFmtRuby&)rAttr).nCharFmtId &&
@@ -546,7 +546,7 @@ SwFmtMeta::~SwFmtMeta()
bool SwFmtMeta::operator==( const SfxPoolItem & i_rOther ) const
{
- OSL_ENSURE( SfxPoolItem::operator==( i_rOther ), "i just copied this assert" );
+ assert(SfxPoolItem::operator==(i_rOther));
return SfxPoolItem::operator==( i_rOther )
&& (m_pMeta == static_cast<SwFmtMeta const &>( i_rOther ).m_pMeta);
}
diff --git a/sw/source/uibase/chrdlg/ccoll.cxx b/sw/source/uibase/chrdlg/ccoll.cxx
index 5de9a98f40cc..621f7a40d87b 100644
--- a/sw/source/uibase/chrdlg/ccoll.cxx
+++ b/sw/source/uibase/chrdlg/ccoll.cxx
@@ -149,7 +149,7 @@ SfxPoolItem* SwCondCollItem::Clone( SfxItemPool * /*pPool*/ ) const
bool SwCondCollItem::operator==( const SfxPoolItem& rItem) const
{
- OSL_ENSURE( SfxPoolItem::operator==(rItem), "different types" );
+ assert(SfxPoolItem::operator==(rItem));
bool bReturn = true;
for(sal_uInt16 i = 0; i < COND_COMMAND_COUNT; i++)
if (m_sStyles[i] !=
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;
diff --git a/sw/source/uibase/utlui/uiitems.cxx b/sw/source/uibase/utlui/uiitems.cxx
index 2bd0c8b911b6..0f7fa70cb088 100644
--- a/sw/source/uibase/utlui/uiitems.cxx
+++ b/sw/source/uibase/utlui/uiitems.cxx
@@ -214,7 +214,7 @@ SfxPoolItem* SwPtrItem::Clone( SfxItemPool * /*pPool*/ ) const
bool SwPtrItem::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==(rAttr), "unequal types" );
+ assert(SfxPoolItem::operator==(rAttr));
const SwPtrItem& rItem = (SwPtrItem&)rAttr;
return ( pMisc == rItem.pMisc );
}
@@ -244,7 +244,7 @@ SfxPoolItem* SwUINumRuleItem::Clone( SfxItemPool * /*pPool*/ ) const
bool SwUINumRuleItem::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==(rAttr), "unequal types" );
+ assert(SfxPoolItem::operator==(rAttr));
return *pRule == *((SwUINumRuleItem&)rAttr).pRule;
}
@@ -298,7 +298,7 @@ SfxPoolItem* SwPaMItem::Clone( SfxItemPool * /*pPool*/ ) const
bool SwPaMItem::operator==( const SfxPoolItem& rAttr ) const
{
- OSL_ENSURE( SfxPoolItem::operator==(rAttr), "unequal types" );
+ assert(SfxPoolItem::operator==(rAttr));
const SwPaMItem& rItem = (SwPaMItem&)rAttr;
return ( m_pPaM == rItem.m_pPaM );
}