From 7cc1d3437a48140382773bf41401a46a3ced4706 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 3 May 2021 09:29:37 +0200 Subject: loplugin:unnecessaryparen small improvement when calling a function, and passing only one arg, but the function has defaulted args, we were ignoring this case. Change-Id: I86517f18e30531127664088ddc09ef96dbd8bdf5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115033 Tested-by: Jenkins Reviewed-by: Noel Grandin --- tools/source/generic/poly.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 05d35f7d1385..292247478aac 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -144,7 +144,7 @@ ImplPolygon::ImplPolygon( const tools::Rectangle& rRect, sal_uInt32 nHorzRound, std::unique_ptr pEllipsePoly( new tools::Polygon( Point(), nHorzRound, nVertRound ) ); sal_uInt16 i, nEnd, nSize4 = pEllipsePoly->GetSize() >> 2; - ImplInitSize((pEllipsePoly->GetSize() + 1)); + ImplInitSize(pEllipsePoly->GetSize() + 1); const Point* pSrcAry = pEllipsePoly->GetConstPointAry(); Point* pDstAry = mxPointAry.get(); @@ -280,7 +280,7 @@ ImplPolygon::ImplPolygon( const tools::Rectangle& rBound, const Point& rStart, c nStart = 1; nEnd = nPoints + 1; - ImplInitSize((nPoints + 2)); + ImplInitSize(nPoints + 2); mxPointAry[0] = aCenter2; mxPointAry[nEnd] = aCenter2; } -- cgit