sw/source/uibase/inc/numberingtypelistbox.hxx | 2 +- sw/source/uibase/misc/numberingtypelistbox.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 97db2e7717d43aa911a3006251980851a426d190 Author: Arnold Dumas <arn...@dumas.at> Date: Sun Feb 12 21:02:49 2017 +0100 tdf#89329: Use unique_ptr for pImpl in numberingtypelistbox Change-Id: I418868bc3415699f1c07ee57b556eb39e7b7c57d Reviewed-on: https://gerrit.libreoffice.org/34185 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/uibase/inc/numberingtypelistbox.hxx b/sw/source/uibase/inc/numberingtypelistbox.hxx index 71d1173..de786c9 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 81e5ad5..eff649e 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(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits