diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-23 09:47:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-23 09:48:10 +0000 |
commit | ed76d1d3504c92bff6bb3e6417e4440572fcd959 (patch) | |
tree | 6d06b4a20bef5acf0c1a4118685f09acdd27fbb7 /cui | |
parent | a61c4ae9cef23a53ea88f957e090bd5ee9b28ca6 (diff) |
loplugins:redundantcast teach it about c-style typedef casts
Change-Id: I1ac11a2481c0f4d8be1e1fd7c7637ac0ece3d65c
Reviewed-on: https://gerrit.libreoffice.org/35558
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optinet2.cxx | 3 | ||||
-rw-r--r-- | cui/source/tabpages/swpossizetabpage.cxx | 6 | ||||
-rw-r--r-- | cui/source/tabpages/tabstpge.cxx | 6 |
3 files changed, 6 insertions, 9 deletions
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<sal_uInt32>(m_pWidthMF->Denormalize(m_pWidthMF->GetValue(FUNIT_TWIP))); sal_uInt32 nHeight = static_cast<sal_uInt32>(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; |