summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorG_Zoltan <zolicsaba@yahoo.com>2016-12-27 22:59:51 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2016-12-28 14:45:07 +0000
commitaa0cacbbc5c582722962b140640bba8c6c745e8f (patch)
tree362b671cec49ace61ba6973558350f6abde237b8
parent54d07bdc22067cead094b994491e5c57e1591d76 (diff)
tdf#89329 pImpl changed to unique_ptr
In dbtree.cxx and dbtree.hxx manual allocated pImpl is changed to std::unique_ptr. Change-Id: I19e76147f79733139c2535269431eeb94f85f557 Reviewed-on: https://gerrit.libreoffice.org/32463 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-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 );