summaryrefslogtreecommitdiff
path: root/svx/source/table/cell.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-13 13:48:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-13 13:48:18 +0200
commit889ea6a50fb8ee154b2816ba287f33f0a3ce239b (patch)
treee2fd7798fde578b3a4f9e02127be7b8596744adf /svx/source/table/cell.cxx
parent8f187d38b18f65ed70a225f63869147605fda704 (diff)
Let BaseProperties::CreateObjectSpecificItemSet return unique_ptr
Change-Id: Ic734fe2a425ca1c821ba91df17aecac5ef40a000
Diffstat (limited to 'svx/source/table/cell.cxx')
-rw-r--r--svx/source/table/cell.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx
index 5266e5e2165f..c1703c9cb88e 100644
--- a/svx/source/table/cell.cxx
+++ b/svx/source/table/cell.cxx
@@ -29,6 +29,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <o3tl/any.hxx>
+#include <o3tl/make_unique.hxx>
#include <svl/style.hxx>
#include <svl/itemset.hxx>
@@ -150,7 +151,7 @@ namespace sdr
{
protected:
// create a new itemset
- SfxItemSet* CreateObjectSpecificItemSet(SfxItemPool& rPool) override;
+ std::unique_ptr<SfxItemSet> CreateObjectSpecificItemSet(SfxItemPool& rPool) override;
const svx::ITextProvider& getTextProvider() const override;
@@ -177,9 +178,9 @@ namespace sdr
};
// create a new itemset
- SfxItemSet* CellProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool)
+ std::unique_ptr<SfxItemSet> CellProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool)
{
- return new SfxItemSet(rPool,
+ return o3tl::make_unique<SfxItemSet>(rPool,
// range from SdrAttrObj
SDRATTR_START, SDRATTR_SHADOW_LAST,