diff options
Diffstat (limited to 'sw/source/core/txtnode/atrfld.cxx')
-rw-r--r-- | sw/source/core/txtnode/atrfld.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sw/source/core/txtnode/atrfld.cxx b/sw/source/core/txtnode/atrfld.cxx index 616a591b169e..136955fdcad5 100644 --- a/sw/source/core/txtnode/atrfld.cxx +++ b/sw/source/core/txtnode/atrfld.cxx @@ -187,10 +187,12 @@ void SwFormatField::ClearTextField() bool SwFormatField::operator==( const SfxPoolItem& rAttr ) const { assert(SfxPoolItem::operator==(rAttr)); - return ( ( mpField && static_cast<const SwFormatField&>(rAttr).GetField() - && mpField->GetTyp() == static_cast<const SwFormatField&>(rAttr).GetField()->GetTyp() - && mpField->GetFormat() == static_cast<const SwFormatField&>(rAttr).GetField()->GetFormat() ) ) - || ( !mpField && !static_cast<const SwFormatField&>(rAttr).GetField() ); + return ( mpField + && static_cast<const SwFormatField&>(rAttr).GetField() + && mpField->GetTyp() == static_cast<const SwFormatField&>(rAttr).GetField()->GetTyp() + && mpField->GetFormat() == static_cast<const SwFormatField&>(rAttr).GetField()->GetFormat() ) + || + ( !mpField && !static_cast<const SwFormatField&>(rAttr).GetField() ); } SfxPoolItem* SwFormatField::Clone( SfxItemPool* ) const |