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 /include/svx | |
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 'include/svx')
-rw-r--r-- | include/svx/sdr/properties/defaultproperties.hxx | 2 | ||||
-rw-r--r-- | include/svx/sdr/properties/properties.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/sdr/properties/defaultproperties.hxx b/include/svx/sdr/properties/defaultproperties.hxx index b3395386f833..beff46818c30 100644 --- a/include/svx/sdr/properties/defaultproperties.hxx +++ b/include/svx/sdr/properties/defaultproperties.hxx @@ -70,7 +70,7 @@ namespace sdr void dumpAsXml(struct _xmlTextWriter * pWriter) const; // Clone() operator, normally just calls the local copy constructor - virtual BaseProperties& Clone(SdrObject& rObj) const override; + virtual std::unique_ptr<BaseProperties> Clone(SdrObject& rObj) const override; // get itemset virtual const SfxItemSet& GetObjectItemSet() const override; diff --git a/include/svx/sdr/properties/properties.hxx b/include/svx/sdr/properties/properties.hxx index 3bfca7630efe..5f9a63484d43 100644 --- a/include/svx/sdr/properties/properties.hxx +++ b/include/svx/sdr/properties/properties.hxx @@ -115,7 +115,7 @@ namespace sdr // Clone() operator, normally just calls the local copy constructor, // see above. - virtual BaseProperties& Clone(SdrObject& rObj) const = 0; + virtual std::unique_ptr<BaseProperties> Clone(SdrObject& rObj) const = 0; // Get the local ItemSet. This directly returns the local ItemSet of the object. No // merging of ItemSets is done for e.g. Group objects. |