diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-13 13:48:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-13 13:48:18 +0200 |
commit | 889ea6a50fb8ee154b2816ba287f33f0a3ce239b (patch) | |
tree | e2fd7798fde578b3a4f9e02127be7b8596744adf /svx/source/sdr/properties/circleproperties.cxx | |
parent | 8f187d38b18f65ed70a225f63869147605fda704 (diff) |
Let BaseProperties::CreateObjectSpecificItemSet return unique_ptr
Change-Id: Ic734fe2a425ca1c821ba91df17aecac5ef40a000
Diffstat (limited to 'svx/source/sdr/properties/circleproperties.cxx')
-rw-r--r-- | svx/source/sdr/properties/circleproperties.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/sdr/properties/circleproperties.cxx b/svx/source/sdr/properties/circleproperties.cxx index 1da3816b498a..4168e28e29e7 100644 --- a/svx/source/sdr/properties/circleproperties.cxx +++ b/svx/source/sdr/properties/circleproperties.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <o3tl/make_unique.hxx> #include <sdr/properties/circleproperties.hxx> #include <svl/itemset.hxx> #include <svl/style.hxx> @@ -32,9 +35,9 @@ namespace sdr namespace properties { // create a new itemset - SfxItemSet* CircleProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) + std::unique_ptr<SfxItemSet> CircleProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) { - return new SfxItemSet(rPool, + return o3tl::make_unique<SfxItemSet>(rPool, // range from SdrAttrObj SDRATTR_START, SDRATTR_SHADOW_LAST, |