summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/indexfieldscontrol.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-20 14:00:04 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-20 15:13:23 +0100
commitf12488405cdfd8555078d15807aafc5ffd1b037b (patch)
tree487b1ae6138d7f2c320a9846289ee7c422d5b8a3 /dbaccess/source/ui/dlg/indexfieldscontrol.cxx
parentb8bc9023a3190cd93150fb14c2e37ad4deb8b435 (diff)
dbaccess: convert new to ::Create.
Also convert svtools' WizardShell::createPage. Change-Id: I09bd40ef4748aa2de7b49eeefc95be06b545ea05
Diffstat (limited to 'dbaccess/source/ui/dlg/indexfieldscontrol.cxx')
-rw-r--r--dbaccess/source/ui/dlg/indexfieldscontrol.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx
index f99b65e30296..474230de6852 100644
--- a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx
+++ b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx
@@ -245,7 +245,7 @@ namespace dbaui
nSortOrderColumnWidth += GetTextWidth(OUString('0')) * 2;
InsertDataColumn(COLUMN_ID_ORDER, sColumnName, nSortOrderColumnWidth, HIB_STDSTYLE, 1);
- m_pSortingCell = new ListBoxControl(&GetDataWindow());
+ m_pSortingCell = VclPtr<ListBoxControl>::Create(&GetDataWindow());
m_pSortingCell->InsertEntry(m_sAscendingText);
m_pSortingCell->InsertEntry(m_sDescendingText);
m_pSortingCell->SetHelpId( HID_DLGINDEX_INDEXDETAILS_SORTORDER );
@@ -261,7 +261,7 @@ namespace dbaui
// create the cell controllers
// for the field name cell
- m_pFieldNameCell = new ListBoxControl(&GetDataWindow());
+ m_pFieldNameCell = VclPtr<ListBoxControl>::Create(&GetDataWindow());
m_pFieldNameCell->InsertEntry(OUString());
m_pFieldNameCell->SetHelpId( HID_DLGINDEX_INDEXDETAILS_FIELD );
const OUString* pFields = _rAvailableFields.getConstArray();