diff options
Diffstat (limited to 'sw/source/uibase/sidebar/StylePresetsPanel.hxx')
-rw-r--r-- | sw/source/uibase/sidebar/StylePresetsPanel.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/sidebar/StylePresetsPanel.hxx b/sw/source/uibase/sidebar/StylePresetsPanel.hxx index 9560da8a6919..047272ea87ca 100644 --- a/sw/source/uibase/sidebar/StylePresetsPanel.hxx +++ b/sw/source/uibase/sidebar/StylePresetsPanel.hxx @@ -42,7 +42,7 @@ class StylePresetsPanel : public PanelLayout, public sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface { public: - static StylePresetsPanel* Create(vcl::Window* pParent, + static VclPtr<vcl::Window> Create(vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rxFrame, SfxBindings* pBindings); @@ -73,10 +73,11 @@ private: SfxBindings* pBindings); virtual ~StylePresetsPanel(); + virtual void dispose() SAL_OVERRIDE; SfxBindings* mpBindings; - ListBox* mpListBox; + VclPtr<ListBox> mpListBox; std::vector<std::unique_ptr<TemplateEntry>> maTemplateEntries; |