summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-30 10:32:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 07:55:50 +0100
commit25baf8b7e3f0a7e7bef552cba919eb3b24a81a19 (patch)
tree6b4ddf9763781ecffc718896d463a4964e94be7b /include
parent9d6e774f51998deadae429061715f92a7af1b0b0 (diff)
loplugin:useuniqueptr in ObjectContact
Change-Id: I89104fe93bbb2db4ca7c092784583eac6fbdda08 Reviewed-on: https://gerrit.libreoffice.org/49209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/sdr/contact/objectcontact.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/sdr/contact/objectcontact.hxx b/include/svx/sdr/contact/objectcontact.hxx
index 4722a4f376e9..d2bf55036946 100644
--- a/include/svx/sdr/contact/objectcontact.hxx
+++ b/include/svx/sdr/contact/objectcontact.hxx
@@ -23,6 +23,7 @@
#include <svx/sdr/animation/objectanimator.hxx>
#include <svx/svxdllapi.h>
#include <drawinglayer/geometry/viewinformation2d.hxx>
+#include <memory>
class SdrLayerIDSet;
namespace tools { class Rectangle; }
@@ -67,7 +68,7 @@ private:
sdr::animation::primitiveAnimator maPrimitiveAnimator;
// the EventHandler for e.g. asynchronious loading of graphics
- sdr::event::TimerEventHandler* mpEventHandler;
+ std::unique_ptr<sdr::event::TimerEventHandler> mpEventHandler;
// The redirector. If set it is used to pipe all supported calls
// to the redirector