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/table/cell.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svx/source/table/cell.cxx') diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx index 0f733d0c6e5d..5d8484944758 100644 --- a/svx/source/table/cell.cxx +++ b/svx/source/table/cell.cxx @@ -162,7 +162,7 @@ namespace sdr CellProperties(const CellProperties& rProps, SdrObject& rObj, sdr::table::Cell* pCell); // Clone() operator, normally just calls the local copy constructor - BaseProperties& Clone(SdrObject& rObj) const override; + std::unique_ptr Clone(SdrObject& rObj) const override; void ForceDefaultAttributes() override; @@ -212,10 +212,10 @@ namespace sdr { } - BaseProperties& CellProperties::Clone(SdrObject& rObj) const + std::unique_ptr CellProperties::Clone(SdrObject& rObj) const { OSL_FAIL("CellProperties::Clone(), does not work yet!"); - return *(new CellProperties(*this, rObj,nullptr)); + return std::unique_ptr(new CellProperties(*this, rObj,nullptr)); } void CellProperties::ForceDefaultAttributes() -- cgit