From 70f05aa69acca911298201b8a61e3312ec1ab30e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 5 Dec 2016 13:59:20 +0200 Subject: convert PolyStyle to scoped enum Change-Id: Ia35fdbb5e40888db9558988ac069741b31721f0e Reviewed-on: https://gerrit.libreoffice.org/31633 Tested-by: Jenkins Reviewed-by: Noel Grandin --- tools/source/generic/poly.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 593d186ef6a0..20391e3df398 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -710,7 +710,7 @@ Polygon::Polygon( const Rectangle& rBound, const Point& rStart, const Point& rEn nPoints = std::max( (sal_uInt16) ( ( fDiff * 0.1591549 ) * nPoints ), (sal_uInt16) 16 ); fStep = fDiff / ( nPoints - 1 ); - if( POLY_PIE == eStyle ) + if( PolyStyle::Pie == eStyle ) { const Point aCenter2( FRound( fCenterX ), FRound( fCenterY ) ); @@ -722,7 +722,7 @@ Polygon::Polygon( const Rectangle& rBound, const Point& rStart, const Point& rEn } else { - mpImplPolygon = new ImplPolygon( ( POLY_CHORD == eStyle ) ? ( nPoints + 1 ) : nPoints ); + mpImplPolygon = new ImplPolygon( ( PolyStyle::Chord == eStyle ) ? ( nPoints + 1 ) : nPoints ); nStart = 0; nEnd = nPoints; } @@ -735,7 +735,7 @@ Polygon::Polygon( const Rectangle& rBound, const Point& rStart, const Point& rEn rPt.Y() = FRound( fCenterY - fRadY * sin( fStart ) ); } - if( POLY_CHORD == eStyle ) + if( PolyStyle::Chord == eStyle ) mpImplPolygon->mpPointAry[ nPoints ] = mpImplPolygon->mpPointAry[ 0 ]; } else -- cgit