diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-30 11:27:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-05 07:56:13 +0100 |
commit | 4573a50b477404b0d17c1c32c2ccb6b9503a0a0d (patch) | |
tree | 00a55ef56f88bae730dfc62dfd463bb79d86d934 /include/svx/sdr | |
parent | 9b0ee7d25fd405153fa783cbc0b1658368a22355 (diff) |
loplugin:useuniqueptr in ViewObjectContact
Change-Id: I69721e71f5351276d43d04107058eeb14d4925aa
Reviewed-on: https://gerrit.libreoffice.org/49213
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/sdr')
-rw-r--r-- | include/svx/sdr/contact/viewobjectcontact.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/sdr/contact/viewobjectcontact.hxx b/include/svx/sdr/contact/viewobjectcontact.hxx index b5b1a35bda5e..ce17890ee93d 100644 --- a/include/svx/sdr/contact/viewobjectcontact.hxx +++ b/include/svx/sdr/contact/viewobjectcontact.hxx @@ -22,6 +22,7 @@ #include <sal/types.h> +#include <memory> #include <vector> #include <svx/svxdllapi.h> #include <drawinglayer/primitive2d/baseprimitive2d.hxx> @@ -55,7 +56,7 @@ private: drawinglayer::primitive2d::Primitive2DContainer mxPrimitive2DSequence; // the PrimitiveAnimation if Primitive2DContainer contains animations - sdr::animation::PrimitiveAnimation* mpPrimitiveAnimation; + std::unique_ptr<sdr::animation::PrimitiveAnimation> mpPrimitiveAnimation; // This bool gets set when the object gets invalidated by ActionChanged() and // can be used from the OC to late-invalidates |