diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-07 09:08:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-07 12:16:13 +0000 |
commit | be8b9b4d29abb951aea0ea195541143d256954dc (patch) | |
tree | f35cddad2b45e189b23d881cb7c194845eb5c933 /sc | |
parent | 7d98edfa4955ab6280655a9678d6a913845fa2f3 (diff) |
loplugin:redundantcast find cstyle arithmetic casts
Change-Id: If7c259f0d12a41182f476ddb558f7cb5f76f9577
Reviewed-on: https://gerrit.libreoffice.org/36253
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/preview.cxx | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index c4add975c7a7..64e655b0a7f3 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -714,8 +714,8 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati // Calculations and values as in detfunc.cxx - Size aSize( (long)( TwipsToHmm( pDoc->GetColWidth( nCol1, nTab1) ) ), - (long)( TwipsToHmm( pDoc->GetRowHeight( nRow1, nTab1) ) ) ); + Size aSize( TwipsToHmm( pDoc->GetColWidth( nCol1, nTab1) ), + TwipsToHmm( pDoc->GetRowHeight( nRow1, nTab1) ) ); tools::Rectangle aRect( aPos, aSize ); aRect.Left() -= 250; aRect.Right() += 250; diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index 132267515eb6..f8091dcdff64 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -1055,8 +1055,8 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt ) aButtonUpPt = PixelToLogic( rMEvt.GetPosPixel(),aMMMode ); - long nWidth = (long) lcl_GetDocPageSize(&pDocShell->GetDocument(), nTab).Width(); - long nHeight = (long) lcl_GetDocPageSize(&pDocShell->GetDocument(), nTab).Height(); + long nWidth = lcl_GetDocPageSize(&pDocShell->GetDocument(), nTab).Width(); + long nHeight = lcl_GetDocPageSize(&pDocShell->GetDocument(), nTab).Height(); if( rMEvt.IsLeft() && GetPointer() == PointerStyle::HSizeBar ) { @@ -1309,8 +1309,8 @@ void ScPreview::MouseMove( const MouseEvent& rMEvt ) long nTopMargin = 0; long nBottomMargin = 0; - long nWidth = (long) lcl_GetDocPageSize(&pDocShell->GetDocument(), nTab).Width(); - long nHeight = (long) lcl_GetDocPageSize(&pDocShell->GetDocument(), nTab).Height(); + long nWidth = lcl_GetDocPageSize(&pDocShell->GetDocument(), nTab).Width(); + long nHeight = lcl_GetDocPageSize(&pDocShell->GetDocument(), nTab).Height(); if ( nPageNo < nTotalPages ) { @@ -1563,8 +1563,8 @@ void ScPreview::DragMove( long nDragMovePos, PointerStyle nFlags ) void ScPreview::DrawInvert( long nDragPos, PointerStyle nFlags ) { - long nHeight = (long) lcl_GetDocPageSize( &pDocShell->GetDocument(), nTab ).Height(); - long nWidth = (long) lcl_GetDocPageSize( &pDocShell->GetDocument(), nTab ).Width(); + long nHeight = lcl_GetDocPageSize( &pDocShell->GetDocument(), nTab ).Height(); + long nWidth = lcl_GetDocPageSize( &pDocShell->GetDocument(), nTab ).Width(); if( nFlags == PointerStyle::HSizeBar || nFlags == PointerStyle::HSplit ) { tools::Rectangle aRect( nDragPos, -aOffset.Y(), nDragPos + 1,(long)( ( nHeight * HMM_PER_TWIPS ) - aOffset.Y())); |