diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-11 14:02:42 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-11 15:12:08 +0100 |
commit | 9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c (patch) | |
tree | c32e463b68bad8cfc1ab9f69792b8c10071515bf /basctl | |
parent | e7473c692cad4c19f1d9eadd2547df4a50875baf (diff) |
Switch VclBuilder constructors to use VclPtr.
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/bastype2.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/moduldlg.cxx | 4 |
3 files changed, 3 insertions, 5 deletions
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<TreeListBox>::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<CheckBox>::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<ExtTreeListBox>::Create(pParent, nWinBits); } bool ExtTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& ) |