summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-30 19:13:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-02 08:26:34 +0200
commit1c944356f817013353819c6eb4bc5ed86356658d (patch)
tree60b73b8149eedb93317e6c1b12c4d6cad9227dae /svx
parentc4b8edefcf452ad80254b1f76bcfba743b0b486f (diff)
loplugin:useuniqueptr in SvxCheckListBox
Change-Id: Ib867d42363a500ea5acfc0998dd33657d3a701c3 Reviewed-on: https://gerrit.libreoffice.org/53708 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/checklbx.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/checklbx.cxx b/svx/source/dialog/checklbx.cxx
index 5bf4c8610087..41c5a42ed93c 100644
--- a/svx/source/dialog/checklbx.cxx
+++ b/svx/source/dialog/checklbx.cxx
@@ -44,14 +44,14 @@ SvxCheckListBox::~SvxCheckListBox()
void SvxCheckListBox::dispose()
{
- delete pCheckButton;
+ pCheckButton.reset();
SvTreeListBox::dispose();
}
void SvxCheckListBox::Init_Impl()
{
- pCheckButton = new SvLBoxButtonData( this );
- EnableCheckButton( pCheckButton );
+ pCheckButton.reset(new SvLBoxButtonData( this ));
+ EnableCheckButton( pCheckButton.get() );
}
void SvxCheckListBox::InsertEntry( const OUString& rStr, sal_uLong nPos,