diff options
Diffstat (limited to 'editeng/source/items/optitems.cxx')
-rw-r--r-- | editeng/source/items/optitems.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/items/optitems.cxx b/editeng/source/items/optitems.cxx index 8dce77f48885..a11c7984e5c5 100644 --- a/editeng/source/items/optitems.cxx +++ b/editeng/source/items/optitems.cxx @@ -81,7 +81,7 @@ SfxPoolItem* SfxSpellCheckItem::Clone( SfxItemPool* ) const bool SfxSpellCheckItem::operator==( const SfxPoolItem& rItem ) const { DBG_ASSERT( SfxPoolItem::operator==(rItem), "unequal types" ); - return ( xSpellCheck == ( (const SfxSpellCheckItem& )rItem ).GetXSpellChecker() ); + return ( xSpellCheck == static_cast<const SfxSpellCheckItem&>( rItem ).GetXSpellChecker() ); } // class SfxHyphenRegionItem ----------------------------------------------- @@ -110,8 +110,8 @@ bool SfxHyphenRegionItem::operator==( const SfxPoolItem& rAttr ) const { DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" ); - return ( ( ( (SfxHyphenRegionItem&)rAttr ).nMinLead == nMinLead ) && - ( ( (SfxHyphenRegionItem&)rAttr ).nMinTrail == nMinTrail ) ); + return ( ( static_cast<const SfxHyphenRegionItem&>( rAttr ).nMinLead == nMinLead ) && + ( static_cast<const SfxHyphenRegionItem&>( rAttr ).nMinTrail == nMinTrail ) ); } |