From 039c1043ca5d650a38a35c51988512e62a1591d2 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Mon, 23 May 2016 02:04:32 +0200 Subject: [PATCH] tdf#89329: use unique_ptr for pImpl in optinet2 Change-Id: I3f23ed564a10a9e6b0884fa1ad109d4d81ad1b6c Reviewed-on: https://gerrit.libreoffice.org/25332 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- cui/source/options/optinet2.cxx | 3 +-- cui/source/options/optinet2.hxx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index 2dc815a8d8a7..2b9d74453673 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -960,8 +960,7 @@ SvxEMailTabPage::~SvxEMailTabPage() void SvxEMailTabPage::dispose() { - delete pImpl; - pImpl = nullptr; + pImpl.reset(); m_pMailContainer.clear(); m_pMailerURLFI.clear(); m_pMailerURLED.clear(); diff --git a/cui/source/options/optinet2.hxx b/cui/source/options/optinet2.hxx index a34eccce80eb..8f0e747e96f4 100644 --- a/cui/source/options/optinet2.hxx +++ b/cui/source/options/optinet2.hxx @@ -171,7 +171,7 @@ class SvxEMailTabPage : public SfxTabPage OUString m_sDefaultFilterName; - SvxEMailTabPage_Impl* pImpl; + std::unique_ptr pImpl; DECL_LINK_TYPED( FileDialogHdl_Impl, Button*, void );