diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-11 13:10:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-12 08:46:04 +0200 |
commit | b0a2ab4c68fa11b0a713583946718a60fda19c0c (patch) | |
tree | a7ef8c410ccebd4a97d4d03566934f90d655d15d /svx/source/table/cell.cxx | |
parent | d1ae2387c729ac8a0e616c57075174eb0d06d389 (diff) |
make BaseProperties::Clone return std::unique_ptr
Change-Id: Iab4fb31c975bc19ccd895df9de79c0ad055027c0
Reviewed-on: https://gerrit.libreoffice.org/52746
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/table/cell.cxx')
-rw-r--r-- | svx/source/table/cell.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<BaseProperties> Clone(SdrObject& rObj) const override; void ForceDefaultAttributes() override; @@ -212,10 +212,10 @@ namespace sdr { } - BaseProperties& CellProperties::Clone(SdrObject& rObj) const + std::unique_ptr<BaseProperties> CellProperties::Clone(SdrObject& rObj) const { OSL_FAIL("CellProperties::Clone(), does not work yet!"); - return *(new CellProperties(*this, rObj,nullptr)); + return std::unique_ptr<BaseProperties>(new CellProperties(*this, rObj,nullptr)); } void CellProperties::ForceDefaultAttributes() |