diff options
-rw-r--r-- | sc/source/ui/inc/tpcalc.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/optdlg/tpcalc.cxx | 4 |
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(); |