diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-16 12:30:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-23 08:14:41 +0200 |
commit | 3a35870a72cf6a8e481c70f972b7258b2dd764a9 (patch) | |
tree | fbf0ee467b0c5cf059810e647876f1368343a9a9 /include | |
parent | 3acdd48382476e7bf79512762a4ecb872a18cdb8 (diff) |
loplugin:useuniqueptr in StatusBar
and rename mpItemList->mvItemList
Change-Id: Ib11dce91543fc4a6623795f3ff2820db5a3d7120
Reviewed-on: https://gerrit.libreoffice.org/53229
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/status.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/vcl/status.hxx b/include/vcl/status.hxx index 8ce894a87630..0ead49f7ddad 100644 --- a/include/vcl/status.hxx +++ b/include/vcl/status.hxx @@ -24,6 +24,7 @@ #include <vcl/dllapi.h> #include <vcl/window.hxx> #include <o3tl/typed_flags_set.hxx> +#include <memory> #include <vector> struct ImplStatusItem; @@ -59,8 +60,8 @@ class VCL_DLLPUBLIC StatusBar : public vcl::Window { class ImplData; private: - std::vector<ImplStatusItem *> mpItemList; - ImplData* mpImplData; + std::vector<std::unique_ptr<ImplStatusItem>> mvItemList; + std::unique_ptr<ImplData> mpImplData; OUString maPrgsTxt; Point maPrgsTxtPos; tools::Rectangle maPrgsFrameRect; |