From b0a2ab4c68fa11b0a713583946718a60fda19c0c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 Apr 2018 13:10:57 +0200 Subject: make BaseProperties::Clone return std::unique_ptr Change-Id: Iab4fb31c975bc19ccd895df9de79c0ad055027c0 Reviewed-on: https://gerrit.libreoffice.org/52746 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/sdr/properties/groupproperties.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/sdr/properties/groupproperties.cxx') diff --git a/svx/source/sdr/properties/groupproperties.cxx b/svx/source/sdr/properties/groupproperties.cxx index a79f7cc9059a..857eea1fed73 100644 --- a/svx/source/sdr/properties/groupproperties.cxx +++ b/svx/source/sdr/properties/groupproperties.cxx @@ -57,9 +57,9 @@ namespace sdr { } - BaseProperties& GroupProperties::Clone(SdrObject& rObj) const + std::unique_ptr GroupProperties::Clone(SdrObject& rObj) const { - return *(new GroupProperties(*this, rObj)); + return std::unique_ptr(new GroupProperties(*this, rObj)); } const SfxItemSet& GroupProperties::GetObjectItemSet() const -- cgit