summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-06-12 01:16:36 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-06-12 12:39:12 +0200
commit01de216daf6dda0fb809bfa1919fcd13e6953ee9 (patch)
tree20f6bfe681c1a465fa3ecc817de8e2ad9a5ff7fb /svl
parenteeee19b3fcf8b0374c361c7f6c285fd5c89b5a2f (diff)
Current baseline Clang 5.0.2 is able to upcast std::unique_ptr
Change-Id: I5ede872a6a629be1bcbd4d3e6fbd604cc76f1d77 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116911 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/itemset.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index b234543a28f4..9ae951ab5936 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -1771,7 +1771,7 @@ std::unique_ptr<SfxItemSet> SfxAllItemSet::Clone(bool bItems, SfxItemPool *pToPo
std::unique_ptr<SfxAllItemSet> pNewSet(new SfxAllItemSet( *pToPool ));
if ( bItems )
pNewSet->Set( *this );
- return std::unique_ptr<SfxItemSet>(pNewSet.release()); // clang3.8 does not seem to be able to upcast std::unique_ptr
+ return std::move(pNewSet);
}
else
return std::unique_ptr<SfxItemSet>(bItems ? new SfxAllItemSet(*this) : new SfxAllItemSet(*m_pPool));