summaryrefslogtreecommitdiff
path: root/svx/source/sdr/properties/groupproperties.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-11 13:10:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-12 08:46:04 +0200
commitb0a2ab4c68fa11b0a713583946718a60fda19c0c (patch)
treea7ef8c410ccebd4a97d4d03566934f90d655d15d /svx/source/sdr/properties/groupproperties.cxx
parentd1ae2387c729ac8a0e616c57075174eb0d06d389 (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/sdr/properties/groupproperties.cxx')
-rw-r--r--svx/source/sdr/properties/groupproperties.cxx4
1 files changed, 2 insertions, 2 deletions
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<BaseProperties> GroupProperties::Clone(SdrObject& rObj) const
{
- return *(new GroupProperties(*this, rObj));
+ return std::unique_ptr<BaseProperties>(new GroupProperties(*this, rObj));
}
const SfxItemSet& GroupProperties::GetObjectItemSet() const