summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-16 16:52:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-17 08:40:23 +0200
commit100f66cfa594454a4f06998e6a346b8f42c052b1 (patch)
tree7ea6c2b1257ae383a68fc0f62d2d2fe80806870a
parent1926e76d9a7ac54b00526afb94debef89108d00c (diff)
loplugin:useuniqueptr in ScTpCalcOptions
Change-Id: Iebf8bc4036ed6b530e088429a71200097816bccd Reviewed-on: https://gerrit.libreoffice.org/57526 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sc/source/ui/inc/tpcalc.hxx4
-rw-r--r--sc/source/ui/optdlg/tpcalc.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/inc/tpcalc.hxx b/sc/source/ui/inc/tpcalc.hxx
index 4e43b776fa62..313434461e7a 100644
--- a/sc/source/ui/inc/tpcalc.hxx
+++ b/sc/source/ui/inc/tpcalc.hxx
@@ -70,8 +70,8 @@ private:
VclPtr<CheckBox> m_pBtnThread;
- ScDocOptions* pOldOptions;
- ScDocOptions* pLocalOptions;
+ std::unique_ptr<ScDocOptions> pOldOptions;
+ std::unique_ptr<ScDocOptions> pLocalOptions;
sal_uInt16 nWhichCalc;
private:
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx
index dc9ae0e28284..3f7f11da2d60 100644
--- a/sc/source/ui/optdlg/tpcalc.cxx
+++ b/sc/source/ui/optdlg/tpcalc.cxx
@@ -75,8 +75,8 @@ ScTpCalcOptions::~ScTpCalcOptions()
void ScTpCalcOptions::dispose()
{
- delete pOldOptions;
- delete pLocalOptions;
+ pOldOptions.reset();
+ pLocalOptions.reset();
m_pBtnIterate.clear();
m_pFtSteps.clear();
m_pEdSteps.clear();