diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-22 16:06:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-23 12:36:16 +0200 |
commit | 6a097a7d964a22fbff8bfa9552c77b11447691bb (patch) | |
tree | 5c86335f81902bae4f6f765893bc847d89ee24d0 /sc/source/ui/Accessibility/AccessibleCell.cxx | |
parent | 229eed079c675e70118370044ae91a69c60d044e (diff) |
loplugin: cstylecast
Change-Id: I8c7cd4c2cdc134556c2c664a22e2048b51a3b98e
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleCell.cxx')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleCell.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleCell.cxx b/sc/source/ui/Accessibility/AccessibleCell.cxx index a15e3f978dbe..aff5ba2a3774 100644 --- a/sc/source/ui/Accessibility/AccessibleCell.cxx +++ b/sc/source/ui/Accessibility/AccessibleCell.cxx @@ -338,9 +338,9 @@ bool ScAccessibleCell::IsEditable( mpDoc) { // here I have to test whether the protection of the table should influence this cell. - const ScProtectionAttr* pItem = (const ScProtectionAttr*)mpDoc->GetAttr( + const ScProtectionAttr* pItem = static_cast<const ScProtectionAttr*>(mpDoc->GetAttr( maCellAddress.Col(), maCellAddress.Row(), - maCellAddress.Tab(), ATTR_PROTECTION); + maCellAddress.Tab(), ATTR_PROTECTION)); if (pItem) bEditable = !pItem->GetProtection(); } @@ -354,9 +354,9 @@ bool ScAccessibleCell::IsOpaque( bool bOpaque(true); if (mpDoc) { - const SvxBrushItem* pItem = (const SvxBrushItem*)mpDoc->GetAttr( + const SvxBrushItem* pItem = static_cast<const SvxBrushItem*>(mpDoc->GetAttr( maCellAddress.Col(), maCellAddress.Row(), - maCellAddress.Tab(), ATTR_BACKGROUND); + maCellAddress.Tab(), ATTR_BACKGROUND)); if (pItem) bOpaque = pItem->GetColor() != COL_TRANSPARENT; } @@ -589,7 +589,7 @@ bool ScAccessibleCell::IsDropdown() return true; } ScMergeFlagAttr* pAttr; - pAttr = (ScMergeFlagAttr*)mpDoc->GetAttr( nPosX, nPosY, nTab, ATTR_MERGE_FLAG ); + pAttr = static_cast<ScMergeFlagAttr*>(mpDoc->GetAttr( nPosX, nPosY, nTab, ATTR_MERGE_FLAG )); if( pAttr->HasAutoFilter() ) { return true; |