From 6f9c00dfe02cdc62ad1b9798a0d007e1303a96e6 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 14 Apr 2015 11:52:19 +0100 Subject: Sidebar lifecycle - dispose panel if we fail to construct it properly. Change-Id: I5e46e72227ac8532aed10758e1ccbb2b452ba8d4 --- sw/inc/AnnotationWin.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/inc/AnnotationWin.hxx') 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 CreateMenuButton() SAL_OVERRIDE; private: virtual SvxLanguageItem GetLanguage(void) SAL_OVERRIDE; -- cgit