summaryrefslogtreecommitdiff
path: root/sw/source/ui/table
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-17 15:30:46 +0200
committerNoel Grandin <noel@peralex.com>2015-04-17 15:30:46 +0200
commitf0f786e8fc7165a22b67ec73331ee8d66c01409c (patch)
treecf89f242c7bfa41b6a8c96e51c9b53205d090189 /sw/source/ui/table
parent0269ef901119635fa809245698c985b30e648ef4 (diff)
sw: convert new to ::Create.
Change-Id: I1669be3e1dfdb6733952b2a801371da243fb94c2
Diffstat (limited to 'sw/source/ui/table')
-rw-r--r--sw/source/ui/table/tabledlg.cxx6
-rw-r--r--sw/source/ui/table/tautofmt.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx
index 23103b1b195f..f444029735dc 100644
--- a/sw/source/ui/table/tabledlg.cxx
+++ b/sw/source/ui/table/tabledlg.cxx
@@ -399,7 +399,7 @@ void SwFormatTablePage::ModifyHdl(const Edit * pEdit)
SfxTabPage* SwFormatTablePage::Create( vcl::Window* pParent,
const SfxItemSet* rAttrSet)
{
- return new SwFormatTablePage( pParent, *rAttrSet );
+ return VclPtr<SwFormatTablePage>::Create( pParent, *rAttrSet );
}
bool SwFormatTablePage::FillItemSet( SfxItemSet* rCoreSet )
@@ -796,7 +796,7 @@ void SwTableColumnPage::dispose()
SfxTabPage* SwTableColumnPage::Create( vcl::Window* pParent,
const SfxItemSet* rAttrSet)
{
- return new SwTableColumnPage( pParent, *rAttrSet );
+ return VclPtr<SwTableColumnPage>::Create( pParent, *rAttrSet );
}
void SwTableColumnPage::Reset( const SfxItemSet* )
@@ -1380,7 +1380,7 @@ void SwTextFlowPage::dispose()
SfxTabPage* SwTextFlowPage::Create( vcl::Window* pParent,
const SfxItemSet* rAttrSet)
{
- return new SwTextFlowPage(pParent, *rAttrSet);
+ return VclPtr<SwTextFlowPage>::Create(pParent, *rAttrSet);
}
bool SwTextFlowPage::FillItemSet( SfxItemSet* rSet )
diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx
index d4d92db414c9..36a0cccf0061 100644
--- a/sw/source/ui/table/tautofmt.cxx
+++ b/sw/source/ui/table/tautofmt.cxx
@@ -514,7 +514,7 @@ IMPL_LINK_NOARG_INLINE_END(SwAutoFormatDlg, OkHdl)
AutoFmtPreview::AutoFmtPreview(vcl::Window* pParent, WinBits nStyle) :
Window ( pParent, nStyle ),
aCurData ( OUString() ),
- aVD ( new VirtualDevice(*this) ),
+ aVD ( VclPtr<VirtualDevice>::Create(*this) ),
aScriptedText ( *aVD.get() ),
bFitWidth ( false ),
mbRTL ( false ),