summaryrefslogtreecommitdiff
path: root/svx/source/sdr/properties/attributeproperties.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/properties/attributeproperties.cxx')
-rw-r--r--svx/source/sdr/properties/attributeproperties.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/sdr/properties/attributeproperties.cxx b/svx/source/sdr/properties/attributeproperties.cxx
index a6bcaf40da65..7f141b8f65b7 100644
--- a/svx/source/sdr/properties/attributeproperties.cxx
+++ b/svx/source/sdr/properties/attributeproperties.cxx
@@ -339,10 +339,7 @@ namespace sdr::properties
if(pResultItem)
{
// force ItemSet
- mxItemSet->Put(*pResultItem);
-
- // delete item if it was a generated one
- pResultItem.reset();
+ mxItemSet->Put(std::move(pResultItem));
}
else
{