diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/AccessibleTextHelper.cxx | 6 | ||||
-rw-r--r-- | svx/source/items/algitem.cxx | 4 | ||||
-rw-r--r-- | svx/source/styles/CommonStylePreviewRenderer.cxx | 2 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx index c1c93b18ba6c..44daca62b2e6 100644 --- a/svx/source/accessibility/AccessibleTextHelper.cxx +++ b/svx/source/accessibility/AccessibleTextHelper.cxx @@ -536,7 +536,7 @@ namespace accessibility ::std::min( maLastSelection.nEndPara, nMaxValidParaIndex )+1, AccessibleEventId::CARET_CHANGED, uno::makeAny(static_cast<sal_Int32>(-1)), - uno::makeAny(static_cast<sal_Int32>(maLastSelection.nEndPos)) ); + uno::makeAny(maLastSelection.nEndPos) ); } ChangeChildFocus( aSelection.nEndPara ); @@ -560,7 +560,7 @@ namespace accessibility if( maLastSelection.nStartPara != EE_PARA_NOT_FOUND && maLastSelection.nEndPara == aSelection.nEndPara ) { - aOldCursor <<= static_cast<sal_Int32>(maLastSelection.nEndPos); + aOldCursor <<= maLastSelection.nEndPos; } else { @@ -570,7 +570,7 @@ namespace accessibility maParaManager.FireEvent( aSelection.nEndPara, aSelection.nEndPara+1, AccessibleEventId::CARET_CHANGED, - uno::makeAny(static_cast<sal_Int32>(aSelection.nEndPos)), + uno::makeAny(aSelection.nEndPos), aOldCursor ); } diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx index 4fb7c0453f27..d3b416487da6 100644 --- a/svx/source/items/algitem.cxx +++ b/svx/source/items/algitem.cxx @@ -144,13 +144,13 @@ sal_uInt16 SvxOrientationItem::GetValueCount() const bool SvxOrientationItem::IsStacked() const { - return static_cast< SvxCellOrientation >( GetValue() ) == SVX_ORIENTATION_STACKED; + return GetValue() == SVX_ORIENTATION_STACKED; } sal_Int32 SvxOrientationItem::GetRotation( sal_Int32 nStdAngle ) const { sal_Int32 nAngle = nStdAngle; - switch( static_cast< SvxCellOrientation >( GetValue() ) ) + switch( GetValue() ) { case SVX_ORIENTATION_BOTTOMTOP: nAngle = 9000;break; case SVX_ORIENTATION_TOPBOTTOM: nAngle = 27000;break; diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx index ab7133d8f8a7..a9d4ac52ef3c 100644 --- a/svx/source/styles/CommonStylePreviewRenderer.cxx +++ b/svx/source/styles/CommonStylePreviewRenderer.cxx @@ -96,7 +96,7 @@ bool CommonStylePreviewRenderer::recalculate() } if ((pItem = pItemSet->GetItem(SID_ATTR_CHAR_OVERLINE)) != nullptr) { - pFont->SetOverline(static_cast<FontLineStyle>(static_cast<const SvxOverlineItem*>(pItem)->GetValue())); + pFont->SetOverline(static_cast<const SvxOverlineItem*>(pItem)->GetValue()); } if ((pItem = pItemSet->GetItem(SID_ATTR_CHAR_STRIKEOUT)) != nullptr) { diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 46443440d640..e21eb758fbee 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -719,7 +719,7 @@ void SvxStyleBox_Impl::SetupEntry(vcl::RenderContext& rRenderContext, vcl::Windo pItem = pItemSet->GetItem( SID_ATTR_CHAR_OVERLINE ); if ( pItem ) - aFont.SetOverline( static_cast< FontLineStyle >( static_cast< const SvxOverlineItem* >( pItem )->GetValue() ) ); + aFont.SetOverline( static_cast< const SvxOverlineItem* >( pItem )->GetValue() ); pItem = pItemSet->GetItem( SID_ATTR_CHAR_STRIKEOUT ); if ( pItem ) |