diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-05-26 01:40:23 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-26 07:43:57 +0000 |
commit | 9a2bbaad2667c025744792948961606fbcc5029c (patch) | |
tree | 13005f382ef5da70029a46d4ad864c03332e9450 | |
parent | 832c9b7b9107ca2f2a85dbf4e0e42a4c2b62a174 (diff) |
tdf#89329: use unique_ptr for pImpl in roadmapwizard
Change-Id: I37c24d830ae702579fe14ecba627d7f1d363eef6
Reviewed-on: https://gerrit.libreoffice.org/25475
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | include/svtools/roadmapwizard.hxx | 4 | ||||
-rw-r--r-- | svtools/source/dialogs/roadmapwizard.cxx | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/include/svtools/roadmapwizard.hxx b/include/svtools/roadmapwizard.hxx index 7e588e9ce6a9..1fb57e32d73d 100644 --- a/include/svtools/roadmapwizard.hxx +++ b/include/svtools/roadmapwizard.hxx @@ -26,8 +26,6 @@ namespace svt { - - struct RoadmapWizardImpl; class RoadmapWizard; @@ -64,7 +62,7 @@ namespace svt class SVT_DLLPUBLIC RoadmapWizard : public OWizardMachine, public RoadmapWizardTypes { private: - RoadmapWizardImpl* m_pImpl; + std::unique_ptr<RoadmapWizardImpl> m_pImpl; public: RoadmapWizard( diff --git a/svtools/source/dialogs/roadmapwizard.cxx b/svtools/source/dialogs/roadmapwizard.cxx index 1df26b6c275b..4fa72e815ad9 100644 --- a/svtools/source/dialogs/roadmapwizard.cxx +++ b/svtools/source/dialogs/roadmapwizard.cxx @@ -150,8 +150,7 @@ namespace svt void RoadmapWizard::dispose() { - delete m_pImpl; - m_pImpl = nullptr; + m_pImpl.reset(); OWizardMachine::dispose(); } |