summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-06-06 00:33:37 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-07 06:57:40 +0000
commit8dc73a2c0801db12b0d03a54c7ec59b12f1276e3 (patch)
treeac5041b7c41d0e05121127055b61ac7a4c5e82b3
parent916b3e30099ee01f6c33ba01c7a8adc24cf965cc (diff)
tdf#89329: use unique_ptr for pImpl in fmpage
Change-Id: I47bc9c2e70ddad5d560cc41db645d9a7085a9aa9 Reviewed-on: https://gerrit.libreoffice.org/25936 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--include/svx/fmpage.hxx2
-rw-r--r--svx/source/form/fmpage.cxx1
2 files changed, 1 insertions, 2 deletions
diff --git a/include/svx/fmpage.hxx b/include/svx/fmpage.hxx
index 044665d3b44c..851e3e473df7 100644
--- a/include/svx/fmpage.hxx
+++ b/include/svx/fmpage.hxx
@@ -43,7 +43,7 @@ class SVX_DLLPUBLIC FmFormPage : public SdrPage
FmFormPage& operator=(const FmFormPage&) = delete;
friend class FmFormObj;
- FmFormPageImpl* m_pImpl;
+ std::unique_ptr<FmFormPageImpl> m_pImpl;
OUString m_sPageName;
public:
diff --git a/svx/source/form/fmpage.cxx b/svx/source/form/fmpage.cxx
index 486936983cf7..de5aa87c74c8 100644
--- a/svx/source/form/fmpage.cxx
+++ b/svx/source/form/fmpage.cxx
@@ -73,7 +73,6 @@ void FmFormPage::lateInit(const FmFormPage& rPage, FmFormModel* const pNewModel)
FmFormPage::~FmFormPage()
{
- delete m_pImpl;
}