summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-06-04 13:43:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-04 20:42:45 +0200
commit8511ee5cd11a5143a4476c0152f0ede0f2b6b87e (patch)
treec91b057fd2f08875a04d45c0cb5c2fd8f029a04f /svtools
parentc4ac732d8132b36b3817e65d2651599ebe16a7f2 (diff)
no need to construct unique_ptr here
and std::move is not needed when returning unique_ptr Change-Id: I9b4d2d6b8a41b570a9bd99e44a743ff161b78c59 Reviewed-on: https://gerrit.libreoffice.org/38385 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelist.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index bd8d55e3a1b6..76fb434aaa6c 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -1040,7 +1040,7 @@ bool SvTreeList::Remove( const SvTreeListEntry* pEntry )
bLastEntry = (nListPos == (rList.size()-1));
SvTreeListEntries::iterator it = rList.begin();
std::advance(it, nListPos);
- pEntryDeleter = std::unique_ptr<SvTreeListEntry>(std::move(*it));
+ pEntryDeleter = std::move(*it);
rList.erase(it);
}
else
@@ -1049,7 +1049,7 @@ bool SvTreeList::Remove( const SvTreeListEntry* pEntry )
std::find_if(rList.begin(), rList.end(), FindByPointer(pEntry));
if (it != rList.end())
{
- pEntryDeleter = std::unique_ptr<SvTreeListEntry>(std::move(*it));
+ pEntryDeleter = std::move(*it);
rList.erase(it);
}
}