diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 13:57:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 16:01:28 +0200 |
commit | 673347af7d37f6789855c17732c9980d91ec6240 (patch) | |
tree | 4447a73900c50db2f949755eca64a91ac2d9a385 /svx/inc/xpolyimp.hxx | |
parent | 0bc97adb82f14d6ec22f868422cbfe000afec402 (diff) |
loplugin:useuniqueptr in scaddins..svx
Change-Id: I309f98f6b820103a926e9fe94d67d0aff6eb6476
Reviewed-on: https://gerrit.libreoffice.org/39754
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/inc/xpolyimp.hxx')
-rw-r--r-- | svx/inc/xpolyimp.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/inc/xpolyimp.hxx b/svx/inc/xpolyimp.hxx index 35ead6c9a87a..02c9b08e1bef 100644 --- a/svx/inc/xpolyimp.hxx +++ b/svx/inc/xpolyimp.hxx @@ -21,6 +21,7 @@ #define INCLUDED_SVX_INC_XPOLYIMP_HXX #include <svx/xpoly.hxx> +#include <memory> #include <vector> class Point; @@ -29,7 +30,8 @@ class ImpXPolygon { public: Point* pPointAry; - PolyFlags* pFlagAry; + std::unique_ptr<PolyFlags[]> + pFlagAry; Point* pOldPointAry; bool bDeleteOldPoints; sal_uInt16 nSize; |