diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-15 13:53:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-15 13:57:08 +0200 |
commit | 0ece187f92f9f87ae69b957c498cad8dcce56232 (patch) | |
tree | 1173470f1c2c5d965891f32ff7bff09ec9d778aa /svx/source/items/drawitem.cxx | |
parent | fb7b1f45f9593db2d040dfaa06db0ea60f5308ba (diff) |
loplugin: cstylecast
Change-Id: I0ccdd2ce18336afea67a3f296b26b2de50f14808
Diffstat (limited to 'svx/source/items/drawitem.cxx')
-rw-r--r-- | svx/source/items/drawitem.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/items/drawitem.cxx b/svx/source/items/drawitem.cxx index 89710db5431b..d21a57b217d3 100644 --- a/svx/source/items/drawitem.cxx +++ b/svx/source/items/drawitem.cxx @@ -63,7 +63,7 @@ bool SvxColorListItem::GetPresentation bool SvxColorListItem::operator==( const SfxPoolItem& rItem ) const { DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" ); - return ( ( SvxColorListItem& ) rItem).pColorList == pColorList; + return static_cast<const SvxColorListItem&>(rItem).pColorList == pColorList; } SfxPoolItem* SvxColorListItem::Clone( SfxItemPool * ) const @@ -127,7 +127,7 @@ bool SvxGradientListItem::GetPresentation bool SvxGradientListItem::operator==( const SfxPoolItem& rItem ) const { DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" ); - return ( ( SvxGradientListItem& ) rItem).pGradientList == pGradientList; + return static_cast<const SvxGradientListItem&>(rItem).pGradientList == pGradientList; } @@ -175,7 +175,7 @@ bool SvxHatchListItem::GetPresentation bool SvxHatchListItem::operator==( const SfxPoolItem& rItem ) const { DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" ); - return ( ( SvxHatchListItem& ) rItem).pHatchList == pHatchList; + return static_cast<const SvxHatchListItem&>(rItem).pHatchList == pHatchList; } @@ -217,7 +217,7 @@ bool SvxBitmapListItem::GetPresentation bool SvxBitmapListItem::operator==( const SfxPoolItem& rItem ) const { DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" ); - return ( ( SvxBitmapListItem& ) rItem).pBitmapList == pBitmapList; + return static_cast<const SvxBitmapListItem&>(rItem).pBitmapList == pBitmapList; } SfxPoolItem* SvxBitmapListItem::Clone( SfxItemPool * ) const @@ -259,7 +259,7 @@ bool SvxDashListItem::GetPresentation bool SvxDashListItem::operator==( const SfxPoolItem& rItem ) const { DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" ); - return ( ( SvxDashListItem& ) rItem).pDashList == pDashList; + return static_cast<const SvxDashListItem&>(rItem).pDashList == pDashList; } SfxPoolItem* SvxDashListItem::Clone( SfxItemPool * ) const @@ -300,7 +300,7 @@ bool SvxLineEndListItem::GetPresentation bool SvxLineEndListItem::operator==( const SfxPoolItem& rItem ) const { DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" ); - return ( ( SvxLineEndListItem& ) rItem).pLineEndList == pLineEndList; + return static_cast<const SvxLineEndListItem&>(rItem).pLineEndList == pLineEndList; } SfxPoolItem* SvxLineEndListItem::Clone( SfxItemPool * ) const |