diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-17 10:35:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-20 13:33:11 +0200 |
commit | 8c8d6f08491479c23998cbfb96201f12acbd873a (patch) | |
tree | 445500c542eecc3161008fda549678f92382f94e /svx/source/sdr/properties/attributeproperties.cxx | |
parent | e12ba2eddc827e39444f5efe6107d8afe1f7aaff (diff) |
loplugin: cstylecast
Change-Id: Ia3055b00c20a885dfa0584f864f0e91ccad1e9c9
Diffstat (limited to 'svx/source/sdr/properties/attributeproperties.cxx')
-rw-r--r-- | svx/source/sdr/properties/attributeproperties.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/sdr/properties/attributeproperties.cxx b/svx/source/sdr/properties/attributeproperties.cxx index c2a113553f1c..bd5a824cf2a1 100644 --- a/svx/source/sdr/properties/attributeproperties.cxx +++ b/svx/source/sdr/properties/attributeproperties.cxx @@ -172,38 +172,38 @@ namespace sdr { case XATTR_FILLBITMAP: { - pResultItem = ((XFillBitmapItem*)pNewItem)->checkForUniqueItem( pModel ); + pResultItem = static_cast<const XFillBitmapItem*>(pNewItem)->checkForUniqueItem( pModel ); break; } case XATTR_LINEDASH: { - pResultItem = ((XLineDashItem*)pNewItem)->checkForUniqueItem( pModel ); + pResultItem = static_cast<const XLineDashItem*>(pNewItem)->checkForUniqueItem( pModel ); break; } case XATTR_LINESTART: { - pResultItem = ((XLineStartItem*)pNewItem)->checkForUniqueItem( pModel ); + pResultItem = static_cast<const XLineStartItem*>(pNewItem)->checkForUniqueItem( pModel ); break; } case XATTR_LINEEND: { - pResultItem = ((XLineEndItem*)pNewItem)->checkForUniqueItem( pModel ); + pResultItem = static_cast<const XLineEndItem*>(pNewItem)->checkForUniqueItem( pModel ); break; } case XATTR_FILLGRADIENT: { - pResultItem = ((XFillGradientItem*)pNewItem)->checkForUniqueItem( pModel ); + pResultItem = static_cast<const XFillGradientItem*>(pNewItem)->checkForUniqueItem( pModel ); break; } case XATTR_FILLFLOATTRANSPARENCE: { // #85953# allow all kinds of XFillFloatTransparenceItem to be set - pResultItem = ((XFillFloatTransparenceItem*)pNewItem)->checkForUniqueItem( pModel ); + pResultItem = static_cast<const XFillFloatTransparenceItem*>(pNewItem)->checkForUniqueItem( pModel ); break; } case XATTR_FILLHATCH: { - pResultItem = ((XFillHatchItem*)pNewItem)->checkForUniqueItem( pModel ); + pResultItem = static_cast<const XFillHatchItem*>(pNewItem)->checkForUniqueItem( pModel ); break; } } @@ -405,7 +405,7 @@ namespace sdr if(GetStyleSheet() != pForThisObject) { ImpRemoveStyleSheet(); - ImpAddStyleSheet((SfxStyleSheet*)pForThisObject, true); + ImpAddStyleSheet(static_cast<SfxStyleSheet*>(pForThisObject), true); } } else @@ -557,8 +557,8 @@ namespace sdr { if(HAS_BASE(SfxStyleSheet, GetStyleSheet())) { - pNewStSh = (SfxStyleSheet*)pModel->GetStyleSheetPool()->Find( - GetStyleSheet()->GetParent(), GetStyleSheet()->GetFamily()); + pNewStSh = static_cast<SfxStyleSheet*>(pModel->GetStyleSheetPool()->Find( + GetStyleSheet()->GetParent(), GetStyleSheet()->GetFamily())); } if(!pNewStSh) |