diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-20 10:26:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-20 12:31:32 +0100 |
commit | 4f4486c61d3e437059a2ac77aae012489f5c7e25 (patch) | |
tree | 408c9a71e3a2d2c4a921ce3a376546ccadae4437 /sc/source/ui/view | |
parent | fda2ee3d87600ce7ecbec5528ea80b8e9758f584 (diff) |
look for =() in loplugin:unnecessaryparen
Change-Id: I4f9b71ff7767e90987bb40358fc46ed5d1d571d0
Reviewed-on: https://gerrit.libreoffice.org/44944
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/printfun.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index b2b553f24700..7dd772d5b2a1 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -1965,8 +1965,8 @@ void ScGridWindow::MouseButtonUp( const MouseEvent& rMEvt ) { // Check on undo already done above - ScStyleSheetPool* pStylePool = (pViewData->GetDocument()-> - GetStyleSheetPool()); + ScStyleSheetPool* pStylePool = pViewData->GetDocument()-> + GetStyleSheetPool(); if ( pStylePool ) { SfxStyleSheet* pStyleSheet = static_cast<SfxStyleSheet*>( diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx index 2571f27eff4d..7e882ced930c 100644 --- a/sc/source/ui/view/printfun.cxx +++ b/sc/source/ui/view/printfun.cxx @@ -2139,8 +2139,8 @@ void ScPrintFunc::PrintPage( long nPageNo, SCCOL nX1, SCROW nY1, SCCOL nX2, SCRO // partition the page - long nStartX = ((long) ( nLeftSpace * nScaleX )); - long nStartY = ((long) ( nTopSpace * nScaleY )); + long nStartX = (long) ( nLeftSpace * nScaleX ); + long nStartY = (long) ( nTopSpace * nScaleY ); long nInnerStartX = nStartX; long nInnerStartY = nStartY; if (pBorderItem) diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index ffe32d905f9a..78611447b1d2 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -778,7 +778,7 @@ void ScViewData::CreateTabData( std::vector< SCTAB >& rvTabs ) void ScViewData::SetZoomType( SvxZoomType eNew, std::vector< SCTAB >& tabs ) { - bool bAll = ( tabs.empty() ); + bool bAll = tabs.empty(); if ( !bAll ) // create associated table data CreateTabData( tabs ); @@ -818,7 +818,7 @@ void ScViewData::SetZoomType( SvxZoomType eNew, bool bAll ) void ScViewData::SetZoom( const Fraction& rNewX, const Fraction& rNewY, std::vector< SCTAB >& tabs ) { - bool bAll = ( tabs.empty() ); + bool bAll = tabs.empty(); if ( !bAll ) // create associated table data CreateTabData( tabs ); |