summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-05-26 01:58:04 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-26 07:40:09 +0000
commit2c7a0652b86a24b6ea42746002dfaec09737f58a (patch)
treef3509754549a9278a93663d54d847080b02b16e0
parent15fed4931ed100fbf0c4769b5b75ac51a95edf84 (diff)
tdf#89329: use unique_ptr for pImpl in wizardmachine
Change-Id: Ie29a95fb913a7141ad6789db236f12c73c283a58 Reviewed-on: https://gerrit.libreoffice.org/25481 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--include/svtools/wizardmachine.hxx2
-rw-r--r--svtools/source/dialogs/wizardmachine.cxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/include/svtools/wizardmachine.hxx b/include/svtools/wizardmachine.hxx
index 0203198bd8b6..4289d6bca289 100644
--- a/include/svtools/wizardmachine.hxx
+++ b/include/svtools/wizardmachine.hxx
@@ -166,7 +166,7 @@ namespace svt
private:
// hold members in this structure to allow keeping compatible when members are added
- WizardMachineImplData* m_pImpl;
+ std::unique_ptr<WizardMachineImplData> m_pImpl;
public:
OWizardMachine(vcl::Window* _pParent, const WinBits i_nStyle, WizardButtonFlags _nButtonFlags );
diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx
index edeab91a3630..f7066e023f17 100644
--- a/svtools/source/dialogs/wizardmachine.cxx
+++ b/svtools/source/dialogs/wizardmachine.cxx
@@ -211,8 +211,7 @@ namespace svt
if (pPage)
pPage->disposeOnce();
}
- delete m_pImpl;
- m_pImpl = nullptr;
+ m_pImpl.reset();
}
WizardDialog::dispose();