summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-20 10:26:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-20 12:31:32 +0100
commit4f4486c61d3e437059a2ac77aae012489f5c7e25 (patch)
tree408c9a71e3a2d2c4a921ce3a376546ccadae4437 /sc/source
parentfda2ee3d87600ce7ecbec5528ea80b8e9758f584 (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')
-rw-r--r--sc/source/ui/unoobj/dapiuno.cxx2
-rw-r--r--sc/source/ui/vba/vbaworkbook.cxx2
-rw-r--r--sc/source/ui/view/gridwin.cxx4
-rw-r--r--sc/source/ui/view/printfun.cxx4
-rw-r--r--sc/source/ui/view/viewdata.cxx4
5 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx
index 6933b9951b8f..5522e9555970 100644
--- a/sc/source/ui/unoobj/dapiuno.cxx
+++ b/sc/source/ui/unoobj/dapiuno.cxx
@@ -2002,7 +2002,7 @@ Any SAL_CALL ScDataPilotFieldObj::getPropertyValue( const OUString& aPropertyNam
aRet <<= DataPilotFieldSortInfo(*pInfo);
}
else if ( aPropertyName == SC_UNONAME_ISGROUP )
- aRet <<= (hasGroupInfo());
+ aRet <<= hasGroupInfo();
else if ( aPropertyName == SC_UNONAME_GROUPINFO )
{
aRet <<= getGroupInfo();
diff --git a/sc/source/ui/vba/vbaworkbook.cxx b/sc/source/ui/vba/vbaworkbook.cxx
index bef00a09fa5f..978915ef71d6 100644
--- a/sc/source/ui/vba/vbaworkbook.cxx
+++ b/sc/source/ui/vba/vbaworkbook.cxx
@@ -74,7 +74,7 @@ ScVbaWorkbook::ResetColors( )
uno::Sequence< sal_Int32 > dDefaultColors( nLen );
sal_Int32* pDest = dDefaultColors.getArray();
for ( sal_Int32 index=0; index < nLen; ++pDest, ++index )
- xIndexAccess->getByIndex( index ) >>= (*pDest);
+ xIndexAccess->getByIndex( index ) >>= *pDest;
initColorData( dDefaultColors );
}
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 );