diff options
author | yellowflash104 <udit.sharma104@gmail.com> | 2017-02-13 01:38:39 +0530 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-13 07:34:51 +0000 |
commit | a512feac63b43ab87411f8579169d85af80acb7f (patch) | |
tree | 8d6475bb5d804283b92cefec572a041f52820dd2 | |
parent | 6fe9017e9ca80f5043d3368e0e6830e2e1a8afcc (diff) |
tdf#89329: use unique_ptr for pImpl in dlgctrls
Change-Id: Id7294b5b3b72b873184d55db64a3477fc56a5485
Reviewed-on: https://gerrit.libreoffice.org/34182
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sd/source/ui/dlg/dlgctrls.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/inc/dlgctrls.hxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/dlg/dlgctrls.cxx b/sd/source/ui/dlg/dlgctrls.cxx index 7d48a8846653..30fc287e03c2 100644 --- a/sd/source/ui/dlg/dlgctrls.cxx +++ b/sd/source/ui/dlg/dlgctrls.cxx @@ -47,7 +47,7 @@ FadeEffectLB::~FadeEffectLB() void FadeEffectLB::dispose() { - delete mpImpl; + mpImpl.reset(); ListBox::dispose(); } diff --git a/sd/source/ui/inc/dlgctrls.hxx b/sd/source/ui/inc/dlgctrls.hxx index bbc76b638fd0..b6ac216955f8 100644 --- a/sd/source/ui/inc/dlgctrls.hxx +++ b/sd/source/ui/inc/dlgctrls.hxx @@ -26,6 +26,7 @@ #include "sdresid.hxx" #include "fadedef.h" #include "sddllapi.h" +#include <memory> /** * FadeEffectLB @@ -39,7 +40,7 @@ public: virtual ~FadeEffectLB() override; virtual void dispose() override; - FadeEffectLBImpl* mpImpl; + std::unique_ptr<FadeEffectLBImpl> mpImpl; }; #endif // INCLUDED_SD_SOURCE_UI_INC_DLGCTRLS_HXX |