summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-08-26 15:33:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-08-26 18:58:45 +0200
commit780728041982ff6980a9552a5b84dd9db6b9680c (patch)
tree683ac9920d5290508619ed7de8e7670eeecd57af /sw
parent6ef4d6bebf92a0410a7c55f81cbaed312e11d8bb (diff)
tdf#158556 no need to clone in OOXMLPropertySetValue::getProperties
the callers just want to read the data Change-Id: I037766ac007266ea81765df94021d05528a60c89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172396 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx b/sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx
index 0293f1b10928..a59746ccfae9 100644
--- a/sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx
+++ b/sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx
@@ -429,8 +429,7 @@ OOXMLPropertySetValue::~OOXMLPropertySetValue()
writerfilter::Reference<Properties>::Pointer_t OOXMLPropertySetValue::getProperties() const
{
- return writerfilter::Reference<Properties>::Pointer_t
- (mpPropertySet->clone());
+ return writerfilter::Reference<Properties>::Pointer_t(mpPropertySet.get());
}
#ifdef DBG_UTIL