diff options
author | Arnold Dumas <arnold@dumas.at> | 2017-02-12 21:02:49 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-13 06:32:49 +0000 |
commit | 97db2e7717d43aa911a3006251980851a426d190 (patch) | |
tree | 5ce552280bb16eabe400c2b352a2ebbbea7ed83a | |
parent | b8d977c0178f8ac4ee299722d50c1481a15b45c8 (diff) |
tdf#89329: Use unique_ptr for pImpl in numberingtypelistbox
Change-Id: I418868bc3415699f1c07ee57b556eb39e7b7c57d
Reviewed-on: https://gerrit.libreoffice.org/34185
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sw/source/uibase/inc/numberingtypelistbox.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/misc/numberingtypelistbox.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/inc/numberingtypelistbox.hxx b/sw/source/uibase/inc/numberingtypelistbox.hxx index 71d117311f6d..de786c905909 100644 --- a/sw/source/uibase/inc/numberingtypelistbox.hxx +++ b/sw/source/uibase/inc/numberingtypelistbox.hxx @@ -40,7 +40,7 @@ struct SwNumberingTypeListBox_Impl; class SW_DLLPUBLIC SwNumberingTypeListBox : public ListBox { - SwNumberingTypeListBox_Impl* pImpl; + std::unique_ptr<SwNumberingTypeListBox_Impl> pImpl; public: SwNumberingTypeListBox( vcl::Window* pWin, WinBits nStyle ); diff --git a/sw/source/uibase/misc/numberingtypelistbox.cxx b/sw/source/uibase/misc/numberingtypelistbox.cxx index 81e5ad5a86ed..eff649edf43c 100644 --- a/sw/source/uibase/misc/numberingtypelistbox.cxx +++ b/sw/source/uibase/misc/numberingtypelistbox.cxx @@ -73,7 +73,7 @@ SwNumberingTypeListBox::~SwNumberingTypeListBox() void SwNumberingTypeListBox::dispose() { - delete pImpl; + pImpl.reset(); ListBox::dispose(); } |