diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-06 08:59:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-06 07:47:30 +0000 |
commit | 7662e92c64ec194a2089f633a363d9dc45a4aa9d (patch) | |
tree | 1086154f31c0c9c6386b44ab83bd382f5308df8c /filter | |
parent | 823a8f3117a8be1de92168226f561ed804db3e93 (diff) |
loplugin:redundantcast find cstyle double casts
Change-Id: I5507be190dac781e5cdb545a60acf3d50056c9f8
Reviewed-on: https://gerrit.libreoffice.org/36187
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/icgm/actimpr.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/class4.cxx | 6 | ||||
-rw-r--r-- | filter/source/msfilter/eschesdo.cxx | 12 |
3 files changed, 8 insertions, 12 deletions
diff --git a/filter/source/graphicfilter/icgm/actimpr.cxx b/filter/source/graphicfilter/icgm/actimpr.cxx index 755f6b8b9afe..027ed0eefdf5 100644 --- a/filter/source/graphicfilter/icgm/actimpr.cxx +++ b/filter/source/graphicfilter/icgm/actimpr.cxx @@ -358,7 +358,7 @@ void CGMImpressOutAct::ImplSetTextBundle( const uno::Reference< beans::XProperty nFontType = pFontEntry->nFontType; aFontDescriptor.Name = OUString::createFromAscii( reinterpret_cast<char*>(pFontEntry->pFontName) ); } - aFontDescriptor.Height = ( sal_Int16 )( ( mpCGM->pElement->nCharacterHeight * (double)1.50 ) ); + aFontDescriptor.Height = ( sal_Int16 )( ( mpCGM->pElement->nCharacterHeight * 1.50 ) ); if ( nFontType & 1 ) aFontDescriptor.Slant = awt::FontSlant_ITALIC; if ( nFontType & 2 ) diff --git a/filter/source/graphicfilter/icgm/class4.cxx b/filter/source/graphicfilter/icgm/class4.cxx index 68e63844843b..adb80d08db59 100644 --- a/filter/source/graphicfilter/icgm/class4.cxx +++ b/filter/source/graphicfilter/icgm/class4.cxx @@ -56,7 +56,7 @@ void CGM::ImplGetVector( double* pVector ) { for ( sal_uInt32 i = 0; i < 4; i++ ) { - pVector[ i ] = (double)ImplGetFloat( pElement->eVDCRealPrecision, pElement->nVDCRealSize ); + pVector[ i ] = ImplGetFloat( pElement->eVDCRealPrecision, pElement->nVDCRealSize ); } } else @@ -504,7 +504,7 @@ void CGM::ImplDoClass4() if ( pElement->eVDCType == VDC_REAL ) { - aRadius.X = (double)ImplGetFloat( pElement->eVDCRealPrecision, pElement->nVDCRealSize ); + aRadius.X = ImplGetFloat( pElement->eVDCRealPrecision, pElement->nVDCRealSize ); } else { @@ -557,7 +557,7 @@ void CGM::ImplDoClass4() ImplGetVector( &vector[ 0 ] ); if ( pElement->eVDCType == VDC_REAL ) { - aRadius.X = (double)ImplGetFloat( pElement->eVDCRealPrecision, pElement->nVDCRealSize ); + aRadius.X = ImplGetFloat( pElement->eVDCRealPrecision, pElement->nVDCRealSize ); } else { diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx index 75bd52cdff99..7c6886d8ce9c 100644 --- a/filter/source/msfilter/eschesdo.cxx +++ b/filter/source/msfilter/eschesdo.cxx @@ -370,14 +370,10 @@ sal_uInt32 ImplEESdrWriter::ImplWriteShape( ImplEESdrObject& rObj, nEndAngle = *o3tl::doAccess<sal_Int32>(rObj.GetUsrAny()); Point aStart, aEnd, aCenter; - aStart.X() = (sal_Int32)( ( cos( (double)( nStartAngle * - F_PI18000 ) ) * 100.0 ) ); - aStart.Y() = - (sal_Int32)( ( sin( (double)( nStartAngle * - F_PI18000 ) ) * 100.0 ) ); - aEnd.X() = (sal_Int32)( ( cos( (double)( nEndAngle * - F_PI18000 ) ) * 100.0 ) ); - aEnd.Y() = - (sal_Int32)( ( sin( (double)( nEndAngle * - F_PI18000 ) ) * 100.0 ) ); + aStart.X() = (sal_Int32)( cos( nStartAngle * F_PI18000 ) * 100.0 ); + aStart.Y() = - (sal_Int32)( sin( nStartAngle * F_PI18000 ) * 100.0 ); + aEnd.X() = (sal_Int32)( cos( nEndAngle * F_PI18000 ) * 100.0 ); + aEnd.Y() = - (sal_Int32)( sin( nEndAngle * F_PI18000 ) * 100.0 ); const tools::Rectangle& rRect = aRect100thmm; aCenter.X() = rRect.Left() + ( rRect.GetWidth() / 2 ); aCenter.Y() = rRect.Top() + ( rRect.GetHeight() / 2 ); |