From e4472d3c139294499f4c0caeebd9d4e995958eb0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Dec 2018 11:20:03 +0200 Subject: loplugin:unnecessaryparen include more assignments Change-Id: I9fb8366634b31230b732dd38a98f800075529714 Reviewed-on: https://gerrit.libreoffice.org/64510 Tested-by: Jenkins Reviewed-by: Noel Grandin --- slideshow/source/engine/transitions/spiralwipe.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'slideshow/source/engine/transitions/spiralwipe.cxx') diff --git a/slideshow/source/engine/transitions/spiralwipe.cxx b/slideshow/source/engine/transitions/spiralwipe.cxx index 6ecad1712ed4..a00c95b0984e 100644 --- a/slideshow/source/engine/transitions/spiralwipe.cxx +++ b/slideshow/source/engine/transitions/spiralwipe.cxx @@ -40,9 +40,9 @@ SpiralWipe::SpiralWipe( sal_Int32 nElements, bool flipOnYAxis ) ::basegfx::B2DPolyPolygon SpiralWipe::calcNegSpiral( double t ) const { - const double area = (t * m_elements); - const double e = (sqrt(area) / 2.0); - const sal_Int32 edge = (static_cast(e) * 2); + const double area = t * m_elements; + const double e = sqrt(area) / 2.0; + const sal_Int32 edge = static_cast(e) * 2; basegfx::B2DHomMatrix aTransform(basegfx::utils::createTranslateB2DHomMatrix(-0.5, -0.5)); const double edge_ = ::basegfx::pruneScaleValue( @@ -54,7 +54,7 @@ SpiralWipe::SpiralWipe( sal_Int32 nElements, bool flipOnYAxis ) ::basegfx::B2DPolyPolygon res(poly); if (! ::basegfx::fTools::equalZero( 1.0 - t )) { - const sal_Int32 edge1 = (edge + 1); + const sal_Int32 edge1 = edge + 1; sal_Int32 len = static_cast( (e - (edge /2)) * edge1 * 4 ); double w = M_PI_2; while (len > 0) { -- cgit