summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/inc/numberingtypelistbox.hxx2
-rw-r--r--sw/source/uibase/misc/numberingtypelistbox.cxx2
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();
}