summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-25 12:21:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-25 14:25:30 +0200
commitd4dff7dc148080da437ed2e46cd08ded044e64a7 (patch)
treec204d3300167fc79a7ed09fece246ec28840f8c9 /svl
parentdd16804e52984ded1ee739a22822daa068a13707 (diff)
return std::unique_ptr from CloneSetWhich
Change-Id: I709122cb8cd7c257e7eb2bd564c529689e6d555a Reviewed-on: https://gerrit.libreoffice.org/62350 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/poolitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx
index 5fe5c480ff07..40e9ef895d42 100644
--- a/svl/source/items/poolitem.cxx
+++ b/svl/source/items/poolitem.cxx
@@ -127,11 +127,11 @@ void SfxPoolItem::dumpAsXml(xmlTextWriterPtr pWriter) const
xmlTextWriterEndElement(pWriter);
}
-SfxPoolItem* SfxPoolItem::CloneSetWhich( sal_uInt16 nNewWhich ) const
+std::unique_ptr<SfxPoolItem> SfxPoolItem::CloneSetWhich( sal_uInt16 nNewWhich ) const
{
SfxPoolItem* pItem = Clone();
pItem->SetWhich(nNewWhich);
- return pItem;
+ return std::unique_ptr<SfxPoolItem>(pItem);
}
bool SfxPoolItem::IsVoidItem() const