summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-30 12:33:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-01 08:31:53 +0200
commitb8f5094c3e094899355af43884d3092b2eb46b97 (patch)
treead295c9116e668cd836678c956b897e4696971ae /tools/source
parentc6fc14a42e068877af844b2695dea8939517c1ac (diff)
loplugin:constantparam
Change-Id: Ie9d4761747f7e97f63f34394b5a8b9f0bb287a0e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97528 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/generic/poly.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index fc31507d93ec..08d6a3eeee84 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -224,7 +224,7 @@ ImplPolygon::ImplPolygon( const Point& rCenter, long nRadX, long nRadY )
}
ImplPolygon::ImplPolygon( const tools::Rectangle& rBound, const Point& rStart, const Point& rEnd,
- PolyStyle eStyle, bool bFullCircle )
+ PolyStyle eStyle )
{
const long nWidth = rBound.GetWidth();
const long nHeight = rBound.GetHeight();
@@ -269,9 +269,6 @@ ImplPolygon::ImplPolygon( const tools::Rectangle& rBound, const Point& rStart, c
if( fDiff < 0. )
fDiff += F_2PI;
- if ( bFullCircle )
- fDiff = F_2PI;
-
// Proportionally shrink number of points( fDiff / (2PI) );
nPoints = std::max( static_cast<sal_uInt16>( ( fDiff * 0.1591549 ) * nPoints ), sal_uInt16(16) );
fStep = fDiff / ( nPoints - 1 );
@@ -902,7 +899,7 @@ Polygon::Polygon( const Point& rCenter, long nRadX, long nRadY )
}
Polygon::Polygon( const tools::Rectangle& rBound, const Point& rStart, const Point& rEnd,
- PolyStyle eStyle, bool bFullCircle ) : mpImplPolygon(ImplPolygon(rBound, rStart, rEnd, eStyle, bFullCircle))
+ PolyStyle eStyle ) : mpImplPolygon(ImplPolygon(rBound, rStart, rEnd, eStyle))
{
}