From f0f786e8fc7165a22b67ec73331ee8d66c01409c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 Apr 2015 15:30:46 +0200 Subject: sw: convert new to ::Create. Change-Id: I1669be3e1dfdb6733952b2a801371da243fb94c2 --- sw/source/ui/fldui/flddb.cxx | 2 +- sw/source/ui/fldui/flddinf.cxx | 2 +- sw/source/ui/fldui/flddok.cxx | 2 +- sw/source/ui/fldui/fldfunc.cxx | 2 +- sw/source/ui/fldui/fldref.cxx | 2 +- sw/source/ui/fldui/fldvar.cxx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sw/source/ui/fldui') diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx index a05a7f23f7bc..4e1607937134 100644 --- a/sw/source/ui/fldui/flddb.cxx +++ b/sw/source/ui/fldui/flddb.cxx @@ -267,7 +267,7 @@ bool SwFldDBPage::FillItemSet(SfxItemSet* ) SfxTabPage* SwFldDBPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) { - return ( new SwFldDBPage( pParent, *rAttrSet ) ); + return VclPtr::Create( pParent, *rAttrSet ); } sal_uInt16 SwFldDBPage::GetGroup() diff --git a/sw/source/ui/fldui/flddinf.cxx b/sw/source/ui/fldui/flddinf.cxx index d5d41f3c9496..d77fdf605cf8 100644 --- a/sw/source/ui/fldui/flddinf.cxx +++ b/sw/source/ui/fldui/flddinf.cxx @@ -465,7 +465,7 @@ bool SwFldDokInfPage::FillItemSet(SfxItemSet* ) SfxTabPage* SwFldDokInfPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) { - return ( new SwFldDokInfPage( pParent, *rAttrSet ) ); + return VclPtr::Create( pParent, *rAttrSet ); } sal_uInt16 SwFldDokInfPage::GetGroup() diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx index 274414181dab..cd0be8b3a5b6 100644 --- a/sw/source/ui/fldui/flddok.cxx +++ b/sw/source/ui/fldui/flddok.cxx @@ -656,7 +656,7 @@ bool SwFldDokPage::FillItemSet(SfxItemSet* ) SfxTabPage* SwFldDokPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) { - return ( new SwFldDokPage( pParent, *rAttrSet ) ); + return VclPtr::Create( pParent, *rAttrSet ); } sal_uInt16 SwFldDokPage::GetGroup() diff --git a/sw/source/ui/fldui/fldfunc.cxx b/sw/source/ui/fldui/fldfunc.cxx index 07d0fdda56eb..b2cfeb365c16 100644 --- a/sw/source/ui/fldui/fldfunc.cxx +++ b/sw/source/ui/fldui/fldfunc.cxx @@ -631,7 +631,7 @@ OUString SwFldFuncPage::TurnMacroString(const OUString &rMacro) SfxTabPage* SwFldFuncPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) { - return ( new SwFldFuncPage( pParent, *rAttrSet ) ); + return VclPtr::Create( pParent, *rAttrSet ); } sal_uInt16 SwFldFuncPage::GetGroup() diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx index 527e44c0bd74..e421f1f43932 100644 --- a/sw/source/ui/fldui/fldref.cxx +++ b/sw/source/ui/fldui/fldref.cxx @@ -953,7 +953,7 @@ bool SwFldRefPage::FillItemSet(SfxItemSet* ) SfxTabPage* SwFldRefPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) { - return ( new SwFldRefPage( pParent, *rAttrSet ) ); + return VclPtr::Create( pParent, *rAttrSet ); } sal_uInt16 SwFldRefPage::GetGroup() diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx index 1163e0ac5b43..257181ad6713 100644 --- a/sw/source/ui/fldui/fldvar.cxx +++ b/sw/source/ui/fldui/fldvar.cxx @@ -1250,7 +1250,7 @@ bool SwFldVarPage::FillItemSet(SfxItemSet* ) SfxTabPage* SwFldVarPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) { - return ( new SwFldVarPage( pParent, *rAttrSet ) ); + return VclPtr::Create( pParent, *rAttrSet ); } sal_uInt16 SwFldVarPage::GetGroup() -- cgit