sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 780728041982ff6980a9552a5b84dd9db6b9680c
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Aug 26 15:33:37 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Aug 26 18:58:45 2024 +0200

    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.gran...@collabora.co.uk>

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

Reply via email to