diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-31 10:31:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-04 08:38:24 +0200 |
commit | 3a83f9726044dac1e1f211ab1c5a33d8fe4cbc0b (patch) | |
tree | 54457b8887fa9ab5d43e9545804264ac94abafb4 /include | |
parent | 905a2bddaab5bc8fc552f019864330fa30e2088b (diff) |
loplugin:useuniqueptr in SvxXMeasurePreview
Change-Id: I03cbabee0cffe7fa8160e800143f34d10ab5a083
Reviewed-on: https://gerrit.libreoffice.org/55227
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/measctrl.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/measctrl.hxx b/include/svx/measctrl.hxx index 09b861703ee4..4cdbb84a60e5 100644 --- a/include/svx/measctrl.hxx +++ b/include/svx/measctrl.hxx @@ -21,6 +21,7 @@ #include <vcl/ctrl.hxx> #include <svx/svxdllapi.h> +#include <memory> class SfxItemSet; class SdrMeasureObj; @@ -32,7 +33,7 @@ class SVX_DLLPUBLIC SvxXMeasurePreview : public Control private: SdrMeasureObj* pMeasureObj; - SdrModel* pModel; + std::unique_ptr<SdrModel> pModel; public: SvxXMeasurePreview(vcl::Window* pParent, WinBits nStyle); |