diff options
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; |