summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-11 14:02:42 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-11 15:12:08 +0100
commit9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c (patch)
treec32e463b68bad8cfc1ab9f69792b8c10071515bf /extensions
parente7473c692cad4c19f1d9eadd2547df4a50875baf (diff)
Switch VclBuilder constructors to use VclPtr.
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/taborder.cxx3
-rw-r--r--extensions/source/scanner/sanedlg.cxx2
2 files changed, 2 insertions, 3 deletions
diff --git a/extensions/source/propctrlr/taborder.cxx b/extensions/source/propctrlr/taborder.cxx
index 63ce93e4948b..8f82b773520f 100644
--- a/extensions/source/propctrlr/taborder.cxx
+++ b/extensions/source/propctrlr/taborder.cxx
@@ -311,10 +311,9 @@ namespace pcr
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinStyle |= WB_BORDER;
- return new TabOrderListBox(pParent, nWinStyle);
+ return VclPtr<TabOrderListBox>::Create(pParent, nWinStyle);
}
-
TabOrderListBox::~TabOrderListBox()
{
}
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index 68f774525eb3..5a3379f1bc3e 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -158,7 +158,7 @@ VCL_BUILDER_DECL_FACTORY(ScanPreview)
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinStyle |= WB_BORDER;
- return new ScanPreview(pParent, nWinStyle);
+ return VclPtr<ScanPreview>::Create(pParent, nWinStyle);
}
SaneDlg::SaneDlg( vcl::Window* pParent, Sane& rSane, bool bScanEnabled ) :