diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-08 14:18:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-14 11:10:31 +0200 |
commit | 981943837313777d1d96ab82068878dc5d87a5db (patch) | |
tree | 46354721a595eb2b0efa77d736ce62114cc3817c /sfx2/source/inc | |
parent | 0f53efefe14285101ee95a2f8a202b30f7089ea9 (diff) |
loplugin:useuniqueptr in SfxCommonTemplateDialog_Impl
Change-Id: I204d9ea555e35d8822c01f43172dad53b04c60fb
Reviewed-on: https://gerrit.libreoffice.org/54171
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/inc')
-rw-r--r-- | sfx2/source/inc/templdgi.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index 6bf1bde8852f..9495ed73db8c 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -23,6 +23,7 @@ class SfxTemplateControllerItem; #include <sal/config.h> +#include <array> #include <memory> #include <vcl/button.hxx> @@ -170,7 +171,7 @@ protected: friend class SfxTemplateControllerItem; SfxBindings* pBindings; - SfxTemplateControllerItem* pBoundItems[COUNT_BOUND_FUNC]; + std::array<std::unique_ptr<SfxTemplateControllerItem>, COUNT_BOUND_FUNC> pBoundItems; VclPtr<vcl::Window> pWindow; std::unique_ptr<VclBuilder> mxBuilder; @@ -179,8 +180,8 @@ protected: SfxModule* pModule; std::unique_ptr<Idle> pIdle; - SfxStyleFamilies* pStyleFamilies; - SfxTemplateItem* pFamilyState[MAX_FAMILIES]; + std::unique_ptr<SfxStyleFamilies> pStyleFamilies; + std::array<std::unique_ptr<SfxTemplateItem>, MAX_FAMILIES> pFamilyState; SfxStyleSheetBasePool* pStyleSheetPool; VclPtr<StyleTreeListBox_Impl> pTreeBox; SfxObjectShell* pCurObjShell; |