diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-16 12:31:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-23 08:14:49 +0200 |
commit | e7197e9dc18dd00f1e553edfd163a0570ecde977 (patch) | |
tree | 7b2fb2755c1be5413b64ac6b39d2b39fba6d5e84 /include | |
parent | 3a35870a72cf6a8e481c70f972b7258b2dd764a9 (diff) |
loplugin:useuniqueptr in Control
Change-Id: If445e1a8ae3a7e3988658c011f678ce1e603f4a9
Reviewed-on: https://gerrit.libreoffice.org/53230
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/ctrl.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx index cb68cfe8f78a..5529cf86b912 100644 --- a/include/vcl/ctrl.hxx +++ b/include/vcl/ctrl.hxx @@ -25,6 +25,7 @@ #include <vcl/dllapi.h> #include <vcl/window.hxx> #include <vcl/salnativewidgets.hxx> +#include <memory> // forward namespace vcl { struct ImplControlData; struct ControlLayoutData; } @@ -34,7 +35,7 @@ class StyleSettings; class VCL_DLLPUBLIC Control : public vcl::Window { protected: - vcl::ImplControlData* mpControlData; + std::unique_ptr<vcl::ImplControlData> mpControlData; private: bool mbHasControlFocus; |