diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-04-14 07:49:22 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-14 07:49:22 +0100 |
commit | 0baadcea83272588f5a4d1d3a003986afe211a23 (patch) | |
tree | b313ea5447daf300dcb52f593b4bbb334b1c72f0 /sw/source/uibase/sidebar/PagePropertyPanel.cxx | |
parent | 26fced1cd40e8c4631df16451711af893460a1cf (diff) |
Re-work app side-bar code to manage objects correctly.
Change-Id: Ie0eb8fe41a9fd4f996f724c47d20d6edecba3672
Diffstat (limited to 'sw/source/uibase/sidebar/PagePropertyPanel.cxx')
-rw-r--r-- | sw/source/uibase/sidebar/PagePropertyPanel.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sw/source/uibase/sidebar/PagePropertyPanel.cxx b/sw/source/uibase/sidebar/PagePropertyPanel.cxx index c04874d2193e..53fd3afaef70 100644 --- a/sw/source/uibase/sidebar/PagePropertyPanel.cxx +++ b/sw/source/uibase/sidebar/PagePropertyPanel.cxx @@ -83,7 +83,7 @@ namespace { namespace sw { namespace sidebar { -PagePropertyPanel* PagePropertyPanel::Create ( +VclPtr<vcl::Window> PagePropertyPanel::Create ( vcl::Window* pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame>& rxFrame, SfxBindings* pBindings) @@ -95,10 +95,12 @@ PagePropertyPanel* PagePropertyPanel::Create ( if (pBindings == NULL) throw ::com::sun::star::lang::IllegalArgumentException("no SfxBindings given to PagePropertyPanel::Create", NULL, 2); - return new PagePropertyPanel( - pParent, - rxFrame, - pBindings); + return VclPtr<vcl::Window>( + new PagePropertyPanel( + pParent, + rxFrame, + pBindings), + SAL_NO_ACQUIRE); } PagePropertyPanel::PagePropertyPanel( |