diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-04 11:20:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-05 07:49:30 +0100 |
commit | e4472d3c139294499f4c0caeebd9d4e995958eb0 (patch) | |
tree | 3e62a6530f8b758dddab18981ee38cc76ecaef9e /filter | |
parent | Include vcl/outdev.hxx (diff) | |
download | core-e4472d3c139294499f4c0caeebd9d4e995958eb0.tar.gz core-e4472d3c139294499f4c0caeebd9d4e995958eb0.zip |
loplugin:unnecessaryparen include more assignments
Change-Id: I9fb8366634b31230b732dd38a98f800075529714
Reviewed-on: https://gerrit.libreoffice.org/64510
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/icgm/bundles.cxx | 4 | ||||
-rw-r--r-- | filter/source/graphicfilter/ipict/shape.cxx | 4 | ||||
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 2 | ||||
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/filter/source/graphicfilter/icgm/bundles.cxx b/filter/source/graphicfilter/icgm/bundles.cxx index c1b6277c88c1..6754b9bccaf2 100644 --- a/filter/source/graphicfilter/icgm/bundles.cxx +++ b/filter/source/graphicfilter/icgm/bundles.cxx @@ -128,7 +128,7 @@ void CGMFList::InsertName( sal_uInt8 const * pSource, sal_uInt32 nSize ) if ( pFound ) { pFontEntry->nFontType |= 1; - sal_uInt32 nPrev = ( pFound - pBuf.get() ); + sal_uInt32 nPrev = pFound - pBuf.get(); sal_uInt32 nToCopyOfs = 6; if ( nPrev && ( pFound[ -1 ] == '-' || pFound[ -1 ] == ' ' ) ) { @@ -148,7 +148,7 @@ void CGMFList::InsertName( sal_uInt8 const * pSource, sal_uInt32 nSize ) { pFontEntry->nFontType |= 2; - sal_uInt32 nPrev = ( pFound - pBuf.get() ); + sal_uInt32 nPrev = pFound - pBuf.get(); sal_uInt32 nToCopyOfs = 4; if ( nPrev && ( pFound[ -1 ] == '-' || pFound[ -1 ] == ' ' ) ) { diff --git a/filter/source/graphicfilter/ipict/shape.cxx b/filter/source/graphicfilter/ipict/shape.cxx index 3bdd022bb3e7..f058dcf5d87f 100644 --- a/filter/source/graphicfilter/ipict/shape.cxx +++ b/filter/source/graphicfilter/ipict/shape.cxx @@ -84,11 +84,11 @@ namespace PictReaderShape { { dest.X()+pSize.Width(), dest.Y()+pSize.Height() }, { dest.X(), dest.Y()+pSize.Height() }}; for (int w = origAvoid+1; w < origAvoid+4; w++) { - int wh = (w%4); + int wh = w%4; poly.append(B2DPoint(origPt[wh][0], origPt[wh][1])); } for (int w = origAvoid+3; w < origAvoid+6; w++) { - int wh = (w%4); + int wh = w%4; poly.append(B2DPoint(destPt[wh][0], destPt[wh][1])); } int wh = (origAvoid+1)%4; diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index b5d6f7f7142f..f3dc9d2b697b 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -1319,7 +1319,7 @@ bool EscherPropertyContainer::CreateGraphicProperties(const uno::Reference<drawi if ( EscherPropertyValueHelper::GetPropertyValue( aAny, aXPropSet, "VisibleArea" ) ) { pVisArea.reset(new awt::Rectangle); - aAny >>= (*pVisArea); + aAny >>= *pVisArea; } sal_uInt32 nBlibId = pGraphicProvider->GetBlibID( *pPicOutStrm, rGraphicObj, pVisArea.get() ); if ( nBlibId ) diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index ac8728cd424f..259035bd2285 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -5708,7 +5708,7 @@ void PPTPortionObj::ApplyTo( SfxItemSet& rSet, SdrPowerPointImport& rManager, T } } pAcc.reset(); - sal_uInt32 nC = ( aSize.Width() * aSize.Height() ); + sal_uInt32 nC = aSize.Width() * aSize.Height(); nRt /= nC; nGn /= nC; nBl /= nC; |