diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-10 15:57:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-12 07:01:15 +0100 |
commit | 307b16c76f6af10648b4b3264c619cffb6bb3d9b (patch) | |
tree | d3323d42db2894b3b6cdaaace399cddb9eca015b /include/vcl/accel.hxx | |
parent | 8901c7c7bc4db5076a615ef942af6fb65e943ee3 (diff) |
loplugin:useuniqueptr in Accelerator and ImplSplitSet
Change-Id: Ic7f3f2653a1d28b8f18804981de788c93eb97c56
Reviewed-on: https://gerrit.libreoffice.org/47729
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/accel.hxx')
-rw-r--r-- | include/vcl/accel.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/accel.hxx b/include/vcl/accel.hxx index 27b3363f838e..6e0681825625 100644 --- a/include/vcl/accel.hxx +++ b/include/vcl/accel.hxx @@ -23,6 +23,7 @@ #include <tools/link.hxx> #include <vcl/keycod.hxx> #include <vcl/dllapi.h> +#include <memory> class ImplAccelData; class ImplAccelEntry; @@ -33,7 +34,7 @@ class VCL_DLLPUBLIC Accelerator friend class ImplAccelManager; private: - ImplAccelData* mpData; + std::unique_ptr<ImplAccelData> mpData; Link<Accelerator&,void> maActivateHdl; Link<Accelerator&,void> maSelectHdl; |