summaryrefslogtreecommitdiff
path: root/cppcanvas/source/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-23 14:36:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 08:43:48 +0200
commit95b04f52b567526a72922af67b926096d10424c1 (patch)
tree171b46f9249db380f3377424304ae49068c62920 /cppcanvas/source/inc
parenta4231a1e3f08323366f0698ec0a78aee010fd356 (diff)
loplugin:useuniqueptr in cppcanvas
Change-Id: I8e995128a7a1c5911efc82a762dbe7be015b2050 Reviewed-on: https://gerrit.libreoffice.org/41493 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas/source/inc')
-rw-r--r--cppcanvas/source/inc/implrenderer.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx
index de215e0132ca..df26d09a4654 100644
--- a/cppcanvas/source/inc/implrenderer.hxx
+++ b/cppcanvas/source/inc/implrenderer.hxx
@@ -33,8 +33,9 @@
#include <osl/endian.h>
-#include <vector>
#include <map>
+#include <memory>
+#include <vector>
class GDIMetaFile;
class VirtualDevice;
@@ -294,7 +295,7 @@ static float GetSwapFloat( SvStream& rSt )
/* EMF+ */
XForm aBaseTransform;
XForm aWorldTransform;
- EMFPObject* aObjects [256];
+ std::unique_ptr<EMFPObject> aObjects [256];
float fPageScale;
sal_Int32 nOriginX;
sal_Int32 nOriginY;