diff options
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editattr.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 2 | ||||
-rw-r--r-- | editeng/source/items/justifyitem.cxx | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/editeng/editattr.cxx b/editeng/source/editeng/editattr.cxx index c4aa362fd7ee..b7f73341567d 100644 --- a/editeng/source/editeng/editattr.cxx +++ b/editeng/source/editeng/editattr.cxx @@ -473,7 +473,7 @@ EditCharAttribRelief::EditCharAttribRelief( const SvxCharReliefItem& rAttr, sal_ void EditCharAttribRelief::SetFont( SvxFont& rFont, OutputDevice* ) { - rFont.SetRelief( (FontRelief)static_cast<const SvxCharReliefItem*>(GetItem())->GetValue() ); + rFont.SetRelief( static_cast<const SvxCharReliefItem*>(GetItem())->GetValue() ); } // class EditCharAttribGrabBag diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 3b974ecdb0ef..2cd69c1c459e 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -2050,7 +2050,7 @@ void CreateFont( SvxFont& rFont, const SfxItemSet& rSet, bool bSearchInParent, S if ( bSearchInParent || ( rSet.GetItemState( EE_CHAR_EMPHASISMARK ) == SfxItemState::SET ) ) rFont.SetEmphasisMark( static_cast<const SvxEmphasisMarkItem&>(rSet.Get( EE_CHAR_EMPHASISMARK )).GetEmphasisMark() ); if ( bSearchInParent || ( rSet.GetItemState( EE_CHAR_RELIEF ) == SfxItemState::SET ) ) - rFont.SetRelief( (FontRelief)static_cast<const SvxCharReliefItem&>(rSet.Get( EE_CHAR_RELIEF )).GetValue() ); + rFont.SetRelief( static_cast<const SvxCharReliefItem&>(rSet.Get( EE_CHAR_RELIEF )).GetValue() ); // If comparing the entire font, or if checking before each alteration // whether the value changes, remains relatively the same thing. diff --git a/editeng/source/items/justifyitem.cxx b/editeng/source/items/justifyitem.cxx index 70189308800a..1d7d55c63700 100644 --- a/editeng/source/items/justifyitem.cxx +++ b/editeng/source/items/justifyitem.cxx @@ -69,7 +69,7 @@ bool SvxHorJustifyItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const case MID_HORJUST_HORJUST: { table::CellHoriJustify eUno = table::CellHoriJustify_STANDARD; - switch ( (SvxCellHorJustify)GetValue() ) + switch ( GetValue() ) { case SvxCellHorJustify::Standard: eUno = table::CellHoriJustify_STANDARD; break; case SvxCellHorJustify::Left: eUno = table::CellHoriJustify_LEFT; break; @@ -87,7 +87,7 @@ bool SvxHorJustifyItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const // (same value for ParaAdjust and ParaLastLineAdjust) style::ParagraphAdjust nAdjust = style::ParagraphAdjust_LEFT; - switch ( (SvxCellHorJustify)GetValue() ) + switch ( GetValue() ) { // ParagraphAdjust_LEFT is used for STANDARD and REPEAT case SvxCellHorJustify::Standard: @@ -218,7 +218,7 @@ bool SvxVerJustifyItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const case MID_HORJUST_ADJUST: { style::VerticalAlignment eUno = style::VerticalAlignment_TOP; - switch ( (SvxCellVerJustify)GetValue() ) + switch ( GetValue() ) { case SVX_VER_JUSTIFY_TOP: eUno = style::VerticalAlignment_TOP; break; case SVX_VER_JUSTIFY_CENTER: eUno = style::VerticalAlignment_MIDDLE; break; @@ -231,7 +231,7 @@ bool SvxVerJustifyItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const default: { sal_Int32 nUno = table::CellVertJustify2::STANDARD; - switch ( (SvxCellVerJustify)GetValue() ) + switch ( GetValue() ) { case SVX_VER_JUSTIFY_STANDARD: nUno = table::CellVertJustify2::STANDARD; break; case SVX_VER_JUSTIFY_TOP: nUno = table::CellVertJustify2::TOP; break; |