summaryrefslogtreecommitdiff
path: root/sw/inc/AnnotationWin.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-14 11:52:19 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-14 13:18:05 +0100
commit6f9c00dfe02cdc62ad1b9798a0d007e1303a96e6 (patch)
tree2ccd1a746abd6a60cce4b8e7778bd725914b4fed /sw/inc/AnnotationWin.hxx
parentca7fa9bdad7b07955cd1783d2e58f06cb0533703 (diff)
Sidebar lifecycle - dispose panel if we fail to construct it properly.
Change-Id: I5e46e72227ac8532aed10758e1ccbb2b452ba8d4
Diffstat (limited to 'sw/inc/AnnotationWin.hxx')
-rw-r--r--sw/inc/AnnotationWin.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx
index 8533cfe92a1a..3f63b27aca34 100644
--- a/sw/inc/AnnotationWin.hxx
+++ b/sw/inc/AnnotationWin.hxx
@@ -56,7 +56,7 @@ class SwAnnotationWin : public sw::sidebarwindows::SwSidebarWin
virtual bool IsProtected() SAL_OVERRIDE;
protected:
- virtual MenuButton* CreateMenuButton() SAL_OVERRIDE;
+ virtual VclPtr<MenuButton> CreateMenuButton() SAL_OVERRIDE;
private:
virtual SvxLanguageItem GetLanguage(void) SAL_OVERRIDE;