summaryrefslogtreecommitdiff
path: root/sc/source/ui/attrdlg
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-27 14:18:17 +0200
committerNoel Grandin <noel@peralex.com>2014-10-28 08:10:20 +0200
commitd9026e13578e6714b2847a9adc0c0563708a0c74 (patch)
treebc3f5e0cd877e4d7a303686ee7087f26e49befd0 /sc/source/ui/attrdlg
parent1e21c77561b802bae4cb84631614f8aa612785a6 (diff)
loplugin: cstylecast
Change-Id: I47adf8a3fc72b4a043724ac40f3637b8dc3878be
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r--sc/source/ui/attrdlg/attrdlg.cxx2
-rw-r--r--sc/source/ui/attrdlg/tabpages.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/attrdlg/attrdlg.cxx b/sc/source/ui/attrdlg/attrdlg.cxx
index de389644c4d7..b6bb098af896 100644
--- a/sc/source/ui/attrdlg/attrdlg.cxx
+++ b/sc/source/ui/attrdlg/attrdlg.cxx
@@ -83,7 +83,7 @@ void ScAttrDlg::PageCreated( sal_uInt16 nPageId, SfxTabPage& rTabPage )
OSL_ENSURE( pInfoItem, "FontListItem not found :-(" );
- aSet.Put (SvxFontListItem(((const SvxFontListItem*)pInfoItem)->GetFontList(), SID_ATTR_CHAR_FONTLIST ));
+ aSet.Put (SvxFontListItem(static_cast<const SvxFontListItem*>(pInfoItem)->GetFontList(), SID_ATTR_CHAR_FONTLIST ));
rTabPage.PageCreated(aSet);
}
}
diff --git a/sc/source/ui/attrdlg/tabpages.cxx b/sc/source/ui/attrdlg/tabpages.cxx
index 2989420dfbf8..5c4e6d1d5f5e 100644
--- a/sc/source/ui/attrdlg/tabpages.cxx
+++ b/sc/source/ui/attrdlg/tabpages.cxx
@@ -80,7 +80,7 @@ void ScTabPageProtection::Reset( const SfxItemSet* rCoreAttrs )
// Is this a Default-Item?
if ( eItemState == SfxItemState::DEFAULT )
- pProtAttr = (const ScProtectionAttr*)&(rCoreAttrs->Get(nWhich));
+ pProtAttr = static_cast<const ScProtectionAttr*>(&(rCoreAttrs->Get(nWhich)));
// At SfxItemState::DONTCARE let to 0
bTriEnabled = ( pProtAttr == NULL ); // TriState, when DontCare
@@ -131,7 +131,7 @@ bool ScTabPageProtection::FillItemSet( SfxItemSet* rCoreAttrs )
if ( bTriEnabled )
bAttrsChanged = true; // DontCare -> properly value
else
- bAttrsChanged = !pOldItem || !( aProtAttr == *(const ScProtectionAttr*)pOldItem );
+ bAttrsChanged = !pOldItem || !( aProtAttr == *static_cast<const ScProtectionAttr*>(pOldItem) );
}
if ( bAttrsChanged )