diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/xpoly.hxx | 9 | ||||
-rw-r--r-- | include/tools/poly.hxx | 1 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/svx/xpoly.hxx b/include/svx/xpoly.hxx index 2c6f848d00be..ffc95ab3f4d0 100644 --- a/include/svx/xpoly.hxx +++ b/include/svx/xpoly.hxx @@ -53,7 +53,8 @@ class SVX_DLLPUBLIC XPolygon final static bool CheckAngles(sal_uInt16& nStart, sal_uInt16 nEnd, sal_uInt16& nA1, sal_uInt16& nA2); public: - XPolygon( sal_uInt16 nSize=16 ); + XPolygon(); + XPolygon( sal_uInt16 nSize ); XPolygon( const XPolygon& rXPoly ); XPolygon( XPolygon&& rXPoly ); XPolygon( const tools::Polygon& rPoly ); @@ -64,10 +65,8 @@ public: ~XPolygon(); - sal_uInt16 GetSize() const; - - void SetPointCount( sal_uInt16 nPoints ); sal_uInt16 GetPointCount() const; + void SetPointCount( sal_uInt16 nPoints ); void Insert( sal_uInt16 nPos, const Point& rPt, PolyFlags eFlags ); void Insert( sal_uInt16 nPos, const XPolygon& rXPoly ); @@ -81,7 +80,7 @@ public: XPolygon& operator=( XPolygon&& rXPoly ); bool operator==( const XPolygon& rXPoly ) const; - PolyFlags GetFlags( sal_uInt16 nPos ) const; + PolyFlags GetFlags( sal_uInt16 nPos ) const; void SetFlags( sal_uInt16 nPos, PolyFlags eFlags ); bool IsControl(sal_uInt16 nPos) const; bool IsSmooth(sal_uInt16 nPos) const; diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx index 1a0926ecfff3..259aeac21b9c 100644 --- a/include/tools/poly.hxx +++ b/include/tools/poly.hxx @@ -88,6 +88,7 @@ public: Polygon( sal_uInt16 nSize ); Polygon( sal_uInt16 nPoints, const Point* pPtAry, const PolyFlags* pFlagAry = nullptr ); + Polygon( std::vector< std::pair<Point, PolyFlags> > const & ); Polygon( const tools::Rectangle& rRect ); Polygon( const tools::Rectangle& rRect, sal_uInt32 nHorzRound, sal_uInt32 nVertRound ); |