summaryrefslogtreecommitdiff
path: root/tools
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
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')
-rw-r--r--tools/inc/poly.h2
-rw-r--r--tools/source/generic/poly.cxx7
2 files changed, 3 insertions, 6 deletions
diff --git a/tools/inc/poly.h b/tools/inc/poly.h
index 17819ac93482..708ebb69bd95 100644
--- a/tools/inc/poly.h
+++ b/tools/inc/poly.h
@@ -38,7 +38,7 @@ public:
ImplPolygon( const tools::Rectangle& rRect, sal_uInt32 nHorzRound, sal_uInt32 nVertRound);
ImplPolygon( const Point& rCenter, long nRadX, long nRadY );
ImplPolygon( const tools::Rectangle& rBound, const Point& rStart, const Point& rEnd,
- PolyStyle eStyle, bool bFullCircle );
+ PolyStyle eStyle );
ImplPolygon( const Point& rBezPt1, const Point& rCtrlPt1, const Point& rBezPt2,
const Point& rCtrlPt2, sal_uInt16 nPoints );
ImplPolygon(const basegfx::B2DPolygon& rPolygon);
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))
{
}