From 780728041982ff6980a9552a5b84dd9db6b9680c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 26 Aug 2024 15:33:37 +0200 Subject: 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 --- sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sw') 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::Pointer_t OOXMLPropertySetValue::getProperties() const { - return writerfilter::Reference::Pointer_t - (mpPropertySet->clone()); + return writerfilter::Reference::Pointer_t(mpPropertySet.get()); } #ifdef DBG_UTIL -- cgit v1.2.3