diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-05 12:47:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-07 10:34:17 +0000 |
commit | a08cb3b52ea4a071ce8eb5a1786ea45fd211ab78 (patch) | |
tree | 0667c60e438b660211a3df83c1b411e055b1de61 /tools/inc | |
parent | 62283fed204e05e3f30a8ae703762d7f96c4e88a (diff) |
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 <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools/inc')
-rw-r--r-- | tools/inc/poly.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 <sal/types.h> +#include <tools/poly.hxx> 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(); |