diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 4 |
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); } } |