diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-04-14 11:52:19 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-14 13:18:05 +0100 |
commit | 6f9c00dfe02cdc62ad1b9798a0d007e1303a96e6 (patch) | |
tree | 2ccd1a746abd6a60cce4b8e7778bd725914b4fed /include | |
parent | ca7fa9bdad7b07955cd1783d2e58f06cb0533703 (diff) |
Sidebar lifecycle - dispose panel if we fail to construct it properly.
Change-Id: I5e46e72227ac8532aed10758e1ccbb2b452ba8d4
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/sidebar/ControlFactory.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sfx2/sidebar/ControlFactory.hxx b/include/sfx2/sidebar/ControlFactory.hxx index a078e00c20c2..142f249c4627 100644 --- a/include/sfx2/sidebar/ControlFactory.hxx +++ b/include/sfx2/sidebar/ControlFactory.hxx @@ -22,6 +22,7 @@ #include <sfx2/dllapi.h> #include <sfx2/sidebar/SidebarToolBox.hxx> #include <vcl/button.hxx> +#include <vcl/vclptr.hxx> #include <com/sun/star/frame/XFrame.hpp> class ToolBox; @@ -39,9 +40,9 @@ class SFX2_DLLPUBLIC ControlFactory public: /** Create the menu button for the task bar. */ - static CheckBox* CreateMenuButton (vcl::Window* pParentWindow); + static VclPtr<CheckBox> CreateMenuButton (vcl::Window* pParentWindow); - static ImageRadioButton* CreateTabItem (vcl::Window* pParentWindow); + static VclPtr<ImageRadioButton> CreateTabItem (vcl::Window* pParentWindow); }; |