summaryrefslogtreecommitdiff
path: root/sc/source/ui/app/inputhdl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-23 08:57:36 +0200
committerNoel Grandin <noel@peralex.com>2014-10-23 12:36:16 +0200
commitfeba02c3a408c34b3b4e203167ea7094efbe7449 (patch)
treedbb858c473beb95f85f4a6a35fab70d76077083b /sc/source/ui/app/inputhdl.cxx
parent6a097a7d964a22fbff8bfa9552c77b11447691bb (diff)
loplugin: cstylecast
Change-Id: I71cdd9154a8a5955e2915858cec33ec4e9ef4987
Diffstat (limited to 'sc/source/ui/app/inputhdl.cxx')
-rw-r--r--sc/source/ui/app/inputhdl.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 1a8fb0f02c5b..f2d89bce7589 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -694,7 +694,7 @@ void ScInputHandler::UpdateSpellSettings( bool bFromStartTab )
pEngine->SetSpeller( xXSpellChecker1 );
}
- bool bHyphen = pLastPattern && ((const SfxBoolItem&)pLastPattern->GetItem(ATTR_HYPHENATE)).GetValue();
+ bool bHyphen = pLastPattern && static_cast<const SfxBoolItem&>(pLastPattern->GetItem(ATTR_HYPHENATE)).GetValue();
if ( bHyphen ) {
com::sun::star::uno::Reference<com::sun::star::linguistic2::XHyphenator> xXHyphenator( LinguMgr::GetHyphenator() );
pEngine->SetHyphenator( xXHyphenator );
@@ -1769,8 +1769,8 @@ void ScInputHandler::UpdateAdjust( sal_Unicode cTyped )
}
bool bAsianVertical = pLastPattern &&
- ((const SfxBoolItem&)pLastPattern->GetItem( ATTR_STACKED )).GetValue() &&
- ((const SfxBoolItem&)pLastPattern->GetItem( ATTR_VERTICAL_ASIAN )).GetValue();
+ static_cast<const SfxBoolItem&>(pLastPattern->GetItem( ATTR_STACKED )).GetValue() &&
+ static_cast<const SfxBoolItem&>(pLastPattern->GetItem( ATTR_VERTICAL_ASIAN )).GetValue();
if ( bAsianVertical )
{
// Always edit at top of cell -> LEFT when editing vertically
@@ -1888,7 +1888,7 @@ bool ScInputHandler::StartTable( sal_Unicode cTyped, bool bFromCommand, bool bIn
if ( SfxItemState::SET == rAttrSet.GetItemState( ATTR_VALUE_FORMAT, true, &pItem ) )
{
- sal_uLong nFormat = ((const SfxUInt32Item*)pItem)->GetValue();
+ sal_uLong nFormat = static_cast<const SfxUInt32Item*>(pItem)->GetValue();
bCellHasPercentFormat = ( NUMBERFORMAT_PERCENT ==
rDoc.GetFormatTable()->GetType( nFormat ) );
}
@@ -1897,7 +1897,7 @@ bool ScInputHandler::StartTable( sal_Unicode cTyped, bool bFromCommand, bool bIn
// Validity specified?
if ( SfxItemState::SET == rAttrSet.GetItemState( ATTR_VALIDDATA, true, &pItem ) )
- nValidation = ((const SfxUInt32Item*)pItem)->GetValue();
+ nValidation = static_cast<const SfxUInt32Item*>(pItem)->GetValue();
else
nValidation = 0;
@@ -1918,7 +1918,7 @@ bool ScInputHandler::StartTable( sal_Unicode cTyped, bool bFromCommand, bool bIn
// Background color must be known for automatic font color.
// For transparent cell background, the document background color must be used.
- Color aBackCol = ((const SvxBrushItem&)
+ Color aBackCol = static_cast<const SvxBrushItem&>(
pPattern->GetItem( ATTR_BACKGROUND )).GetColor();
ScModule* pScMod = SC_MOD();
if ( aBackCol.GetTransparency() > 0 ||
@@ -1927,7 +1927,7 @@ bool ScInputHandler::StartTable( sal_Unicode cTyped, bool bFromCommand, bool bIn
pEngine->SetBackgroundColor( aBackCol );
// Adjustment
- eAttrAdjust = (SvxCellHorJustify)((const SvxHorJustifyItem&)pPattern->
+ eAttrAdjust = (SvxCellHorJustify)static_cast<const SvxHorJustifyItem&>(pPattern->
GetItem(ATTR_HOR_JUSTIFY)).GetValue();
if ( eAttrAdjust == SVX_HOR_JUSTIFY_REPEAT &&
static_cast<const SfxBoolItem&>(pPattern->GetItem(ATTR_LINEBREAK)).GetValue() )