From ed76d1d3504c92bff6bb3e6417e4440572fcd959 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Mar 2017 09:47:49 +0200 Subject: loplugins:redundantcast teach it about c-style typedef casts Change-Id: I1ac11a2481c0f4d8be1e1fd7c7637ac0ece3d65c Reviewed-on: https://gerrit.libreoffice.org/35558 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/options/optinet2.cxx | 3 +-- cui/source/tabpages/swpossizetabpage.cxx | 6 ++---- cui/source/tabpages/tabstpge.cxx | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) (limited to 'cui') diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index 81e2698187b7..5c9e357e84d8 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -421,8 +421,7 @@ bool SvxProxyTabPage::FillItemSet(SfxItemSet* ) return true; } - xPropertySet->setPropertyValue(g_aProxyModePN, - Any((sal_Int32) nSelPos)); + xPropertySet->setPropertyValue(g_aProxyModePN, Any(nSelPos)); bModified = true; } diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx index e1e3d5852589..2a4deffed663 100644 --- a/cui/source/tabpages/swpossizetabpage.cxx +++ b/cui/source/tabpages/swpossizetabpage.cxx @@ -911,10 +911,8 @@ bool SvxSwPosSizeTabPage::FillItemSet( SfxItemSet* rSet) { sal_uInt32 nWidth = static_cast(m_pWidthMF->Denormalize(m_pWidthMF->GetValue(FUNIT_TWIP))); sal_uInt32 nHeight = static_cast(m_pHeightMF->Denormalize(m_pHeightMF->GetValue(FUNIT_TWIP))); - rSet->Put( SfxUInt32Item( GetWhich( SID_ATTR_TRANSFORM_WIDTH ), - (sal_uInt32) nWidth ) ); - rSet->Put( SfxUInt32Item( GetWhich( SID_ATTR_TRANSFORM_HEIGHT ), - (sal_uInt32) nHeight ) ); + rSet->Put( SfxUInt32Item( GetWhich( SID_ATTR_TRANSFORM_WIDTH ), nWidth ) ); + rSet->Put( SfxUInt32Item( GetWhich( SID_ATTR_TRANSFORM_HEIGHT ), nHeight ) ); //this item is required by SdrEditView::SetGeoAttrToMarked() rSet->Put( SfxAllEnumItem( GetWhich( SID_ATTR_TRANSFORM_SIZE_POINT ), (sal_uInt16)RectPoint::LT ) ); diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx index 6b7842618acf..f6f42f4312fd 100644 --- a/cui/source/tabpages/tabstpge.cxx +++ b/cui/source/tabpages/tabstpge.cxx @@ -433,7 +433,7 @@ void SvxTabulatorTabPage::SetFillAndTabType_Impl() pTypeBtn = m_pDezTab; m_pDezChar->Enable(); m_pDezCharLabel->Enable(); - m_pDezChar->SetText( OUString( (sal_Unicode)aAktTab.GetDecimal() ) ); + m_pDezChar->SetText( OUString( aAktTab.GetDecimal() ) ); } else if ( aAktTab.GetAdjustment() == SvxTabAdjust::Center ) pTypeBtn = m_pCenterTab; @@ -456,7 +456,7 @@ void SvxTabulatorTabPage::SetFillAndTabType_Impl() { pFillBtn = m_pFillSpecial; m_pFillChar->Enable(); - m_pFillChar->SetText( OUString( (sal_Unicode)aAktTab.GetFill() ) ); + m_pFillChar->SetText( OUString( aAktTab.GetFill() ) ); } pFillBtn->Check(); } @@ -587,7 +587,7 @@ IMPL_LINK( SvxTabulatorTabPage, TabTypeCheckHdl_Impl, Button *, pBox, void ) eAdj = SvxTabAdjust::Decimal; m_pDezChar->Enable(); m_pDezCharLabel->Enable(); - m_pDezChar->SetText( OUString( (sal_Unicode)aAktTab.GetDecimal() ) ); + m_pDezChar->SetText( OUString( aAktTab.GetDecimal() ) ); } aAktTab.GetAdjustment() = eAdj; -- cgit