From a08cb3b52ea4a071ce8eb5a1786ea45fd211ab78 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 5 Dec 2016 12:47:37 +0200 Subject: convert PolyFlags to scoped enum and remove the XPolyFlags enum, which has the same values and was being converted to PolyFlags anyhow Change-Id: Iaead84933c79a7603698a4e50257dd944df89c41 Reviewed-on: https://gerrit.libreoffice.org/31627 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- tools/inc/poly.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/inc') diff --git a/tools/inc/poly.h b/tools/inc/poly.h index 3be118927435..6ad1b5b82ceb 100644 --- a/tools/inc/poly.h +++ b/tools/inc/poly.h @@ -20,6 +20,7 @@ #define INCLUDED_TOOLS_INC_POLY_H #include +#include class Point; @@ -27,8 +28,8 @@ class SAL_WARN_UNUSED ImplPolygonData { public: Point* mpPointAry; - sal_uInt8* mpFlagAry; - sal_uInt16 mnPoints; + PolyFlags* mpFlagAry; + sal_uInt16 mnPoints; sal_uInt32 mnRefCount; }; @@ -36,7 +37,7 @@ class SAL_WARN_UNUSED ImplPolygon : public ImplPolygonData { public: ImplPolygon( sal_uInt16 nInitSize, bool bFlags = false ); - ImplPolygon( sal_uInt16 nPoints, const Point* pPtAry, const sal_uInt8* pInitFlags ); + ImplPolygon( sal_uInt16 nPoints, const Point* pPtAry, const PolyFlags* pInitFlags ); ImplPolygon( const ImplPolygon& rImplPoly ); ~ImplPolygon(); -- cgit v1.2.3