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 /desktop | |
parent | e7473c692cad4c19f1d9eadd2547df4a50875baf (diff) |
Switch VclBuilder constructors to use VclPtr.
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_dialog2.cxx | 2 | ||||
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_extlistbox.cxx | 2 | ||||
-rw-r--r-- | desktop/source/deployment/gui/license_dialog.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx index 37e653e1ad00..f3a4cfdcda76 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx @@ -199,7 +199,7 @@ void ExtBoxWithBtns_Impl::InitFromDialog(ExtMgrDialog *pParentDialog) VCL_BUILDER_DECL_FACTORY(ExtBoxWithBtns) { (void)rMap; - return new ExtBoxWithBtns_Impl(pParent); + return VclPtr<ExtBoxWithBtns_Impl>::Create(pParent); } diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx index 26b577ebab7d..a32897e8f12c 100644 --- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx +++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx @@ -833,7 +833,7 @@ Size ExtensionBox_Impl::GetOptimalSize() const VCL_BUILDER_DECL_FACTORY(ExtensionBox) { (void)rMap; - return new ExtensionBox_Impl(pParent); + return VclPtr<ExtensionBox_Impl>::Create(pParent); } long ExtensionBox_Impl::PointToPos( const Point& rPos ) diff --git a/desktop/source/deployment/gui/license_dialog.cxx b/desktop/source/deployment/gui/license_dialog.cxx index 141d64b2ddc7..ff682c8de596 100644 --- a/desktop/source/deployment/gui/license_dialog.cxx +++ b/desktop/source/deployment/gui/license_dialog.cxx @@ -132,7 +132,7 @@ VCL_BUILDER_DECL_FACTORY(LicenseView) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new LicenseView(pParent, nWinStyle | WB_VSCROLL); + return VclPtr<LicenseView>::Create(pParent, nWinStyle | WB_VSCROLL); } LicenseView::~LicenseView() |