summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-03-15 13:06:21 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-15 18:36:37 +0000
commit82981b94feeae5fb1fb72139ce87fbc22ef33601 (patch)
treee4a05955832137210c5cbbf0b68510cd22ccaf7e /cui
parente0d86cff2b3314576c6cb857da06d6b6d217f89b (diff)
remove useless casts
Change-Id: I900b72372a56d341d18091b0d4721d31002d147f Reviewed-on: https://gerrit.libreoffice.org/35223 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/chardlg.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 53e5e08200c8..cc5f57191b4e 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -723,7 +723,7 @@ void SvxCharNamePage::Reset_Impl( const SfxItemSet& rSet, LanguageGroup eLangGrp
if ( eState >= SfxItemState::DEFAULT )
{
const SvxPostureItem& rItem = static_cast<const SvxPostureItem&>(rSet.Get( nWhich ));
- eItalic = (FontItalic)rItem.GetValue();
+ eItalic = rItem.GetValue();
bStyle = true;
}
bStyleAvailable = bStyleAvailable && (eState >= SfxItemState::DONTCARE);
@@ -739,7 +739,7 @@ void SvxCharNamePage::Reset_Impl( const SfxItemSet& rSet, LanguageGroup eLangGrp
if ( eState >= SfxItemState::DEFAULT )
{
const SvxWeightItem& rItem = static_cast<const SvxWeightItem&>(rSet.Get( nWhich ));
- eWeight = (FontWeight)rItem.GetValue();
+ eWeight = rItem.GetValue();
}
else
bStyle = false;
@@ -1725,7 +1725,7 @@ void SvxCharEffectsPage::Reset( const SfxItemSet* rSet )
else
{
const SvxUnderlineItem& rItem = static_cast<const SvxUnderlineItem&>(rSet->Get( nWhich ));
- FontLineStyle eUnderline = (FontLineStyle)rItem.GetValue();
+ FontLineStyle eUnderline = rItem.GetValue();
rFont.SetUnderline( eUnderline );
rCJKFont.SetUnderline( eUnderline );
rCTLFont.SetUnderline( eUnderline );
@@ -1769,7 +1769,7 @@ void SvxCharEffectsPage::Reset( const SfxItemSet* rSet )
else
{
const SvxOverlineItem& rItem = static_cast<const SvxOverlineItem&>(rSet->Get( nWhich ));
- FontLineStyle eOverline = (FontLineStyle)rItem.GetValue();
+ FontLineStyle eOverline = rItem.GetValue();
rFont.SetOverline( eOverline );
rCJKFont.SetOverline( eOverline );
rCTLFont.SetOverline( eOverline );
@@ -1813,7 +1813,7 @@ void SvxCharEffectsPage::Reset( const SfxItemSet* rSet )
else
{
const SvxCrossedOutItem& rItem = static_cast<const SvxCrossedOutItem&>(rSet->Get( nWhich ));
- FontStrikeout eStrikeout = (FontStrikeout)rItem.GetValue();
+ FontStrikeout eStrikeout = rItem.GetValue();
rFont.SetStrikeout( eStrikeout );
rCJKFont.SetStrikeout( eStrikeout );
rCTLFont.SetStrikeout( eStrikeout );
@@ -2144,7 +2144,7 @@ bool SvxCharEffectsPage::FillItemSet( SfxItemSet* rSet )
SfxItemState::DEFAULT > rOldSet.GetItemState( nWhich );
const SvxUnderlineItem& rItem = *static_cast<const SvxUnderlineItem*>(pOld);
- if ( (FontLineStyle)rItem.GetValue() == eUnder &&
+ if ( rItem.GetValue() == eUnder &&
( LINESTYLE_NONE == eUnder || rItem.GetColor() == m_pUnderlineColorLB->GetSelectEntryColor() ) &&
! bAllowChg )
bChanged = false;
@@ -2178,7 +2178,7 @@ bool SvxCharEffectsPage::FillItemSet( SfxItemSet* rSet )
SfxItemState::DEFAULT > rOldSet.GetItemState( nWhich );
const SvxOverlineItem& rItem = *static_cast<const SvxOverlineItem*>(pOld);
- if ( (FontLineStyle)rItem.GetValue() == eOver &&
+ if ( rItem.GetValue() == eOver &&
( LINESTYLE_NONE == eOver || rItem.GetColor() == m_pOverlineColorLB->GetSelectEntryColor() ) &&
! bAllowChg )
bChanged = false;
@@ -2213,7 +2213,7 @@ bool SvxCharEffectsPage::FillItemSet( SfxItemSet* rSet )
const SvxCrossedOutItem& rItem = *static_cast<const SvxCrossedOutItem*>(pOld);
if ( !m_pStrikeoutLB->IsEnabled()
- || ((FontStrikeout)rItem.GetValue() == eStrike && !bAllowChg) )
+ || (rItem.GetValue() == eStrike && !bAllowChg) )
bChanged = false;
}