summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-17 15:52:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-18 10:18:51 +0200
commitfacb86ea0140a3c82f02754e311efad33e072d1c (patch)
treebca1361b048c913e4e3485b5a2316988cdd41271 /include
parentce2e94a98f5fc85bef7623a0227b3a95d8093288 (diff)
use std::unique_ptr in SvTreeList
Change-Id: Ibfba32d6855532aeb42c45f493a4f01f7d0cd4ee Reviewed-on: https://gerrit.libreoffice.org/43475 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svtools/treelist.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svtools/treelist.hxx b/include/svtools/treelist.hxx
index 483575b01c6b..d921653c29fb 100644
--- a/include/svtools/treelist.hxx
+++ b/include/svtools/treelist.hxx
@@ -131,7 +131,7 @@ class SVT_DLLPUBLIC SvTreeList final
SvTreeList(const SvTreeList&) = delete;
SvTreeList& operator= (const SvTreeList&) = delete;
- SvTreeListEntry* pRootItem;
+ std::unique_ptr<SvTreeListEntry> pRootItem;
public:
@@ -166,7 +166,7 @@ public:
sal_uLong Insert( SvTreeListEntry* pEntry,SvTreeListEntry* pPar,sal_uLong nPos = TREELIST_APPEND);
sal_uLong Insert( SvTreeListEntry* pEntry,sal_uLong nRootPos = TREELIST_APPEND )
- { return Insert(pEntry, pRootItem, nRootPos ); }
+ { return Insert(pEntry, pRootItem.get(), nRootPos ); }
void InsertTree( SvTreeListEntry* pTree, SvTreeListEntry* pTargetParent, sal_uLong nListPos );