From 936a49646738452f7331ed9a47ac015db9ee7295 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 --- chart2/source/controller/dialogs/tp_DataSourceControls.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chart2') diff --git a/chart2/source/controller/dialogs/tp_DataSourceControls.cxx b/chart2/source/controller/dialogs/tp_DataSourceControls.cxx index 55eb08494239..2991f23c28a8 100644 --- a/chart2/source/controller/dialogs/tp_DataSourceControls.cxx +++ b/chart2/source/controller/dialogs/tp_DataSourceControls.cxx @@ -42,7 +42,7 @@ VCL_BUILDER_DECL_FACTORY(SeriesListBox) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SeriesListBox(pParent, nWinStyle); + rRet = VclPtr::Create(pParent, nWinStyle); } SvTreeListEntry* SeriesListBox::CreateEntry() const -- cgit