summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/dbui/dbtree.cxx1
-rw-r--r--sw/source/uibase/inc/dbtree.hxx2
2 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx
index d4d786a74316..5691f3deef31 100644
--- a/sw/source/uibase/dbui/dbtree.cxx
+++ b/sw/source/uibase/dbui/dbtree.cxx
@@ -161,7 +161,6 @@ SwDBTreeList::~SwDBTreeList()
void SwDBTreeList::dispose()
{
- delete pImpl;
pImpl = nullptr;
SvTreeListBox::dispose();
}
diff --git a/sw/source/uibase/inc/dbtree.hxx b/sw/source/uibase/inc/dbtree.hxx
index a9a43b59b606..47d179d524ce 100644
--- a/sw/source/uibase/inc/dbtree.hxx
+++ b/sw/source/uibase/inc/dbtree.hxx
@@ -33,7 +33,7 @@ class SW_DLLPUBLIC SwDBTreeList : public SvTreeListBox
bool bInitialized;
bool bShowColumns;
- SwDBTreeList_Impl* pImpl;
+ std::unique_ptr<SwDBTreeList_Impl> pImpl;
DECL_DLLPRIVATE_LINK( DBCompare, const SvSortData&, sal_Int32 );