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/grfitem.cxx | |
parent | fb7b1f45f9593db2d040dfaa06db0ea60f5308ba (diff) |
loplugin: cstylecast
Change-Id: I0ccdd2ce18336afea67a3f296b26b2de50f14808
Diffstat (limited to 'svx/source/items/grfitem.cxx')
-rw-r--r-- | svx/source/items/grfitem.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/svx/source/items/grfitem.cxx b/svx/source/items/grfitem.cxx index f06abd1d74ea..44ef7f8f4bea 100644 --- a/svx/source/items/grfitem.cxx +++ b/svx/source/items/grfitem.cxx @@ -43,10 +43,11 @@ SvxGrfCrop::~SvxGrfCrop() bool SvxGrfCrop::operator==( const SfxPoolItem& rAttr ) const { DBG_ASSERT( SfxPoolItem::operator==( rAttr ), "not equal attributes" ); - return nLeft == ((const SvxGrfCrop&)rAttr).GetLeft() && - nRight == ((const SvxGrfCrop&)rAttr).GetRight() && - nTop == ((const SvxGrfCrop&)rAttr).GetTop() && - nBottom == ((const SvxGrfCrop&)rAttr).GetBottom(); + const SvxGrfCrop& rCrop = static_cast<const SvxGrfCrop&>(rAttr); + return nLeft == rCrop.GetLeft() && + nRight == rCrop.GetRight() && + nTop == rCrop.GetTop() && + nBottom == rCrop.GetBottom(); } SfxPoolItem* SvxGrfCrop::Create( SvStream& rStrm, sal_uInt16 nVersion ) const @@ -57,7 +58,7 @@ SfxPoolItem* SvxGrfCrop::Create( SvStream& rStrm, sal_uInt16 nVersion ) const if( GRFCROP_VERSION_SWDEFAULT == nVersion ) top = -top, bottom = -bottom, left = -left, right = -right; - SvxGrfCrop* pNew = (SvxGrfCrop*)Clone(); + SvxGrfCrop* pNew = static_cast<SvxGrfCrop*>(Clone()); pNew->SetLeft( left ); pNew->SetRight( right ); pNew->SetTop( top ); |