summaryrefslogtreecommitdiffstats
path: root/drawinglayer/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-18 10:54:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-18 14:57:10 +0200
commitda9d85ae699b841a6d6616e6db9d9dbb23ed73c0 (patch)
treed9ba70e2c5af6e45fbfa343cf3b8aa9c7e0389a0 /drawinglayer/inc
parentuse rtl::Reference in sc/../uno/* (diff)
downloadcore-da9d85ae699b841a6d6616e6db9d9dbb23ed73c0.tar.gz
core-da9d85ae699b841a6d6616e6db9d9dbb23ed73c0.zip
use std::unique_ptr in wmfemfhelper::TargetHolder
Change-Id: I2fab3b9a111513ac711a6480eb240de99eea1991 Reviewed-on: https://gerrit.libreoffice.org/43486 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/inc')
-rw-r--r--drawinglayer/inc/wmfemfhelper.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/drawinglayer/inc/wmfemfhelper.hxx b/drawinglayer/inc/wmfemfhelper.hxx
index 7ae8e64ad6e8..2af7cce6904d 100644
--- a/drawinglayer/inc/wmfemfhelper.hxx
+++ b/drawinglayer/inc/wmfemfhelper.hxx
@@ -25,6 +25,7 @@
#include <vcl/font.hxx>
#include <vcl/outdevstate.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
+#include <memory>
// predefines
namespace drawinglayer { namespace geometry { class ViewInformation2D; }}
@@ -42,13 +43,13 @@ namespace wmfemfhelper
class TargetHolder
{
private:
- std::vector< drawinglayer::primitive2d::BasePrimitive2D* > aTargets;
+ std::vector< std::unique_ptr<drawinglayer::primitive2d::BasePrimitive2D> > aTargets;
public:
TargetHolder();
~TargetHolder();
sal_uInt32 size() const;
- void append(drawinglayer::primitive2d::BasePrimitive2D* pCandidate);
+ void append(std::unique_ptr<drawinglayer::primitive2d::BasePrimitive2D> pCandidate);
drawinglayer::primitive2d::Primitive2DContainer getPrimitive2DSequence(const PropertyHolder& rPropertyHolder);
};
}