summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-03 14:05:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-07 08:31:32 +0200
commit8ffd83de107adfcc7a18bde6e8337c90924b89b7 (patch)
tree0f3aa6bcf7ea04d873943bff20fce72a3e4e62eb /sfx2
parent0e2d60f8565c2619807900244b3238ea23c4d962 (diff)
loplugin:useuniqueptr in SfxModalDialog
Change-Id: I612b92045c3a1cf4a443adf2b35fe7ac6f1aa0bf Reviewed-on: https://gerrit.libreoffice.org/53868 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/basedlgs.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index beb615a60d60..9aa81f460a2a 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -138,7 +138,7 @@ SfxModalDialog::~SfxModalDialog()
void SfxModalDialog::dispose()
{
SetDialogData_Impl();
- delete pOutputSet;
+ pOutputSet.reset();
ModalDialog::dispose();
}
@@ -148,7 +148,7 @@ void SfxModalDialog::CreateOutputItemSet( const SfxItemSet& rSet )
DBG_ASSERT( !pOutputSet, "Double creation of OutputSet!" );
if (!pOutputSet)
{
- pOutputSet = new SfxItemSet( rSet );
+ pOutputSet.reset(new SfxItemSet( rSet ));
pOutputSet->ClearItem();
}
}