diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-05-23 02:04:32 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-26 07:29:46 +0000 |
commit | 039c1043ca5d650a38a35c51988512e62a1591d2 (patch) | |
tree | 4c0bcc0221ce506d0174f324d0e4b078bd3fa0d8 | |
parent | 509f0c6a8aa36b7fa532f784e10bbe9ec4e57c4b (diff) |
tdf#89329: use unique_ptr for pImpl in optinet2
Change-Id: I3f23ed564a10a9e6b0884fa1ad109d4d81ad1b6c
Reviewed-on: https://gerrit.libreoffice.org/25332
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | cui/source/options/optinet2.cxx | 3 | ||||
-rw-r--r-- | 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<SvxEMailTabPage_Impl> pImpl; DECL_LINK_TYPED( FileDialogHdl_Impl, Button*, void ); |