diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-27 09:38:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-30 08:22:30 +0200 |
commit | fe7bea05bb5ddcb0eacddc72fdb0f8689d01ed75 (patch) | |
tree | c414a28c4869c55344435643b0ed85c2b16fd7ea /sw/source/ui | |
parent | 818b837790c0807e508fc1246df3d2e07520529f (diff) |
loplugin:useuniqueptr in SwSendMailDialog
Change-Id: I653066c25fd627d98e63f7ae94a56954c9c01583
Reviewed-on: https://gerrit.libreoffice.org/58248
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/dbui/mmoutputtypepage.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/inc/mmresultdialogs.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx index d66ba8126a94..9bf6e97400f8 100644 --- a/sw/source/ui/dbui/mmoutputtypepage.cxx +++ b/sw/source/ui/dbui/mmoutputtypepage.cxx @@ -309,7 +309,7 @@ void SwSendMailDialog::dispose() { } } - delete m_pImpl; + m_pImpl.reset(); m_pStatus.disposeAndClear(); m_pTransferStatus.clear(); m_pPaused.clear(); diff --git a/sw/source/ui/inc/mmresultdialogs.hxx b/sw/source/ui/inc/mmresultdialogs.hxx index d391f34a50f9..b23705100f41 100644 --- a/sw/source/ui/inc/mmresultdialogs.hxx +++ b/sw/source/ui/inc/mmresultdialogs.hxx @@ -179,7 +179,7 @@ class SwSendMailDialog : public Dialog bool m_bCancel; bool m_bDestructionEnabled; - SwSendMailDialog_Impl* m_pImpl; + std::unique_ptr<SwSendMailDialog_Impl> m_pImpl; SwMailMergeConfigItem* m_pConfigItem; sal_Int32 m_nExpectedCount; sal_Int32 m_nSendCount; |