diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2018-07-01 22:04:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-03 08:18:19 +0200 |
commit | dbdf5ef32e2fc041183b762d9a1561430c96470b (patch) | |
tree | b2ce4ec15fdbb3712a7d81ab9b779acbfd44fe9f /svx/source/svdraw/svdograf.cxx | |
parent | 24218c21712bc900a6641bd1844878f07b173df7 (diff) |
use std::unique_ptr for CreateObjectSpecificViewContact
Change-Id: I0fed54d345a43fe0bc21ebbe424e6fdc7eac9523
Reviewed-on: https://gerrit.libreoffice.org/56823
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdograf.cxx')
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index aefebe7b3a7c..90e6d4a0c391 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -62,6 +62,7 @@ #include <drawinglayer/primitive2d/objectinfoprimitive2d.hxx> #include <memory> #include <vcl/GraphicLoader.hxx> +#include <o3tl/make_unique.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -272,9 +273,9 @@ sdr::properties::BaseProperties* SdrGrafObj::CreateObjectSpecificProperties() // DrawContact section -sdr::contact::ViewContact* SdrGrafObj::CreateObjectSpecificViewContact() +std::unique_ptr<sdr::contact::ViewContact> SdrGrafObj::CreateObjectSpecificViewContact() { - return new sdr::contact::ViewContactOfGraphic(*this); + return o3tl::make_unique<sdr::contact::ViewContactOfGraphic>(*this); } // check if SVG and if try to get ObjectInfoPrimitive2D and extract info |