diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-17 15:11:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-17 15:11:54 +0200 |
commit | 0269ef901119635fa809245698c985b30e648ef4 (patch) | |
tree | beb46403f2675dc15bfd02c1c5bc727ba892c1c6 /sw/source/uibase/ribbar | |
parent | 5459c4a7312ce7bc0326978f4164441e76e5d5a4 (diff) |
sw: convert new to ::Create.
Change-Id: Iab0fc73540b3c7a60c64296dce86b70c1e02cf09
Diffstat (limited to 'sw/source/uibase/ribbar')
-rw-r--r-- | sw/source/uibase/ribbar/inputwin.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/ribbar/workctrl.cxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/ribbar/inputwin.cxx b/sw/source/uibase/ribbar/inputwin.cxx index b2dc3c18c342..c20543cdd59e 100644 --- a/sw/source/uibase/ribbar/inputwin.cxx +++ b/sw/source/uibase/ribbar/inputwin.cxx @@ -58,8 +58,8 @@ SFX_IMPL_POS_CHILDWINDOW_WITHID( SwInputChild, FN_EDIT_FORMULA, SFX_OBJECTBAR_OB SwInputWindow::SwInputWindow( vcl::Window* pParent, SfxBindings* pBind ) : ToolBox( pParent , SW_RES( RID_TBX_FORMULA )), - aPos( new Edit(this, SW_RES(ED_POS))), - aEdit( new InputEdit(this, WB_3DLOOK|WB_TABSTOP|WB_BORDER|WB_NOHIDESELECTION)), + aPos( VclPtr<Edit>::Create(this, SW_RES(ED_POS))), + aEdit( VclPtr<InputEdit>::Create(this, WB_3DLOOK|WB_TABSTOP|WB_BORDER|WB_NOHIDESELECTION)), aPopMenu( SW_RES(MN_CALC_POPUP)), pMgr(0), pWrtShell(0), @@ -625,7 +625,7 @@ SwInputChild::SwInputChild(vcl::Window* _pParent, SfxChildWindow( _pParent, nId ) { pDispatch = pBindings->GetDispatcher(); - pWindow = new SwInputWindow( _pParent, pBindings ); + pWindow = VclPtr<SwInputWindow>::Create( _pParent, pBindings ); static_cast<SwInputWindow*>(pWindow.get())->ShowWin(); eChildAlignment = SfxChildAlignment::LOWESTTOP; } diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx index 3b5bc23807f5..869ac2a44f9e 100644 --- a/sw/source/uibase/ribbar/workctrl.cxx +++ b/sw/source/uibase/ribbar/workctrl.cxx @@ -398,7 +398,7 @@ SwScrollNaviPopup::SwScrollNaviPopup(sal_uInt16 nId, const Reference< XFrame >& "modules/swriter/ui/floatingnavigation.ui", rFrame), aIList(SW_RES(IL_VALUES)) { - m_pToolBox = new SwScrollNaviToolBox(get<vcl::Window>("box"), this, 0); + m_pToolBox = VclPtr<SwScrollNaviToolBox>::Create(get<vcl::Window>("box"), this, 0); get(m_pInfoField, "label"); sal_uInt16 i; @@ -477,9 +477,9 @@ void SwScrollNaviPopup::ApplyImageList() } } -SfxPopupWindow* SwScrollNaviPopup::Clone() const +VclPtr<SfxPopupWindow> SwScrollNaviPopup::Clone() const { - return new SwScrollNaviPopup( GetId(), GetFrame(), GetParent() ); + return VclPtr<SwScrollNaviPopup>::Create( GetId(), GetFrame(), GetParent() ); } IMPL_LINK(SwScrollNaviPopup, SelectHdl, ToolBox*, pSet) |