summaryrefslogtreecommitdiff
path: root/sc/source/ui/dialogs
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-20 15:50:17 +0200
committerNoel Grandin <noel@peralex.com>2015-04-20 15:50:17 +0200
commitb8bc9023a3190cd93150fb14c2e37ad4deb8b435 (patch)
tree9803ef0da4356b5768e028bf6dfc4233327c16e9 /sc/source/ui/dialogs
parent8e934e79407fba1b0ba564dbaf295a2102d557a4 (diff)
sc: convert new to ::Create
Change-Id: I196ef015660a2d87a33957ed3442341001f4a303
Diffstat (limited to 'sc/source/ui/dialogs')
-rw-r--r--sc/source/ui/dialogs/searchresults.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/dialogs/searchresults.cxx b/sc/source/ui/dialogs/searchresults.cxx
index 7dd4ce661bbb..2d91c929f12c 100644
--- a/sc/source/ui/dialogs/searchresults.cxx
+++ b/sc/source/ui/dialogs/searchresults.cxx
@@ -32,7 +32,7 @@ SearchResultsDlg::SearchResultsDlg( SfxBindings* _pBindings, vcl::Window* pParen
pContainer->set_width_request(aControlSize.Width());
pContainer->set_height_request(aControlSize.Height());
- mpList = new SvSimpleTable(*pContainer);
+ mpList = VclPtr<SvSimpleTable>::Create(*pContainer);
long nTabs[] = {3, 0, 40, 60};
mpList->SetTabs(&nTabs[0]);
mpList->InsertHeaderEntry(SC_RESSTR(STR_SHEET) + "\t" + SC_RESSTR(STR_CELL) + "\t" + SC_RESSTR(STR_CONTENT));
@@ -124,7 +124,7 @@ SearchResultsDlgWrapper::SearchResultsDlgWrapper(
vcl::Window* _pParent, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* /*pInfo*/ ) :
SfxChildWindow(_pParent, nId)
{
- pWindow = new SearchResultsDlg(pBindings, _pParent, nId);
+ pWindow = VclPtr<SearchResultsDlg>::Create(pBindings, _pParent, nId);
}
SearchResultsDlgWrapper::~SearchResultsDlgWrapper() {}