summaryrefslogtreecommitdiff
path: root/tools/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-14 13:50:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-15 10:16:41 +0100
commit5763b7f48e7aaf089c78714a82212e94b28007d7 (patch)
treedcc834c844c2933ac64a8e0707cb599760dfb099 /tools/inc
parentcfbc934609aaa303d03fd73b58bde1370ea312dc (diff)
merge ImplPolygon and ImplPolygonData
Change-Id: Ia59a4533965bb3b76c73cc23c31bff4718768339 Reviewed-on: https://gerrit.libreoffice.org/46454 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'tools/inc')
-rw-r--r--tools/inc/poly.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/inc/poly.h b/tools/inc/poly.h
index 5609e4a5d681..e59123f06473 100644
--- a/tools/inc/poly.h
+++ b/tools/inc/poly.h
@@ -24,18 +24,15 @@
class Point;
-class SAL_WARN_UNUSED ImplPolygonData
+class SAL_WARN_UNUSED ImplPolygon
{
public:
std::unique_ptr<Point[]> mxPointAry;
std::unique_ptr<PolyFlags[]> mxFlagAry;
sal_uInt16 mnPoints;
-};
-class SAL_WARN_UNUSED ImplPolygon : public ImplPolygonData
-{
public:
- ImplPolygon() { mnPoints = 0; }
+ ImplPolygon() : mnPoints(0) {}
ImplPolygon( sal_uInt16 nInitSize, bool bFlags = false );
ImplPolygon( sal_uInt16 nPoints, const Point* pPtAry, const PolyFlags* pInitFlags );
ImplPolygon( const ImplPolygon& rImplPoly );
@@ -50,7 +47,6 @@ public:
bool operator==( const ImplPolygon& rCandidate ) const;
- void ImplInitDefault();
void ImplInitSize(sal_uInt16 nInitSize, bool bFlags = false);
void ImplSetSize( sal_uInt16 nSize, bool bResize = true );
void ImplCreateFlagArray();