From 9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 11 May 2015 14:02:42 +0100 Subject: Switch VclBuilder constructors to use VclPtr. Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf --- basctl/source/basicide/bastype2.cxx | 2 +- basctl/source/basicide/moduldl2.cxx | 2 +- basctl/source/basicide/moduldlg.cxx | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx index 27f35d57c12f..633ded977259 100644 --- a/basctl/source/basicide/bastype2.cxx +++ b/basctl/source/basicide/bastype2.cxx @@ -202,7 +202,7 @@ VCL_BUILDER_DECL_FACTORY(TreeListBox) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinBits |= WB_BORDER; - return new TreeListBox(pParent, nWinBits); + return VclPtr::Create(pParent, nWinBits); } TreeListBox::~TreeListBox () diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 32c9280ddffd..433a6379ff60 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -152,7 +152,7 @@ VCL_BUILDER_DECL_FACTORY(CheckBox) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinBits |= WB_BORDER; - return new CheckBox(pParent, nWinBits); + return VclPtr::Create(pParent, nWinBits); } CheckBox::~CheckBox() diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx index 712c66c6eef4..493f280efb04 100644 --- a/basctl/source/basicide/moduldlg.cxx +++ b/basctl/source/basicide/moduldlg.cxx @@ -47,8 +47,6 @@ using namespace ::com::sun::star::resource; // ExtTreeListBox - - ExtTreeListBox::ExtTreeListBox(vcl::Window* pParent, WinBits nStyle) : TreeListBox(pParent, nStyle) { @@ -60,7 +58,7 @@ VCL_BUILDER_DECL_FACTORY(ExtTreeListBox) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinBits |= WB_BORDER; - return new ExtTreeListBox(pParent, nWinBits); + return VclPtr::Create(pParent, nWinBits); } bool ExtTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& ) -- cgit