diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-30 09:07:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-02 08:25:55 +0200 |
commit | 6702a4c56abc2bcd46df65b6eb5ba61e6f1c8dcb (patch) | |
tree | 6c229591940487a50247d71c84dc5ac071fe2523 /include | |
parent | d90d9b422789b152416cc66f700a9af2d0a8285d (diff) |
loplugin:useuniqueptr in TemplateLocalView
Change-Id: I248c0aed295502ee5da15004403cc02a483dd893
Reviewed-on: https://gerrit.libreoffice.org/53703
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/templatelocalview.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx index 7617ceb297a5..a5881e4d7820 100644 --- a/include/sfx2/templatelocalview.hxx +++ b/include/sfx2/templatelocalview.hxx @@ -10,11 +10,12 @@ #ifndef INCLUDED_SFX2_TEMPLATELOCALVIEW_HXX #define INCLUDED_SFX2_TEMPLATELOCALVIEW_HXX -#include <set> -#include <functional> #include <vcl/menu.hxx> #include <sfx2/thumbnailview.hxx> #include <sfx2/templateproperties.hxx> +#include <functional> +#include <memory> +#include <set> //template thumbnail item defines #define TEMPLATE_ITEM_MAX_WIDTH 160 @@ -188,8 +189,8 @@ protected: Link<ThumbnailViewItem*,void> maDeleteTemplateHdl; Link<ThumbnailViewItem*,void> maDefaultTemplateHdl; - SfxDocumentTemplates *mpDocTemplates; - std::vector<TemplateContainerItem* > maRegions; + std::unique_ptr<SfxDocumentTemplates> mpDocTemplates; + std::vector<std::unique_ptr<TemplateContainerItem> > maRegions; std::vector<TemplateItemProperties > maAllTemplates; }; |