sw/source/core/unocore/unostyle.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 1c6d2beb035a960967adbf851c4acd21507a4e0a
Author:     Noel Grandin <[email protected]>
AuthorDate: Tue Feb 3 16:24:20 2026 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu Feb 26 06:50:55 2026 +0100

    tdf#170595 simplify SwXStyle::SetPropertyValue<HINT_BEGIN>
    
    and avoid constructing an intermediate SfxItemSet
    
    Change-Id: If30ee2276d181adb3d4164086a08d909a3c6dac2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198664
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>
    (cherry picked from commit df872deb4ca0b74757137c7da76d116cc681b887)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200318
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/sw/source/core/unocore/unostyle.cxx 
b/sw/source/core/unocore/unostyle.cxx
index 35cff7c4ce43..b1a36cf0d8a3 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1584,10 +1584,7 @@ void SwXStyle::SetPropertyValue<HINT_BEGIN>(const 
SfxItemPropertyMapEntry& rEntr
 {
     // default ItemSet handling
     SfxItemSet& rStyleSet = o_rStyleBase.GetItemSet();
-    SfxItemSet aSet(*rStyleSet.GetPool(), rEntry.nWID, rEntry.nWID);
-    aSet.SetParent(&rStyleSet);
-    SfxItemPropertySet::setPropertyValue(rEntry, rValue, aSet);
-    rStyleSet.Put(aSet);
+    SfxItemPropertySet::setPropertyValue(rEntry, rValue, rStyleSet);
 }
 template<>
 void SwXStyle::SetPropertyValue<FN_UNO_HIDDEN>(const SfxItemPropertyMapEntry& 
rEntry, const SfxItemPropertySet& rPropSet, const uno::Any& rValue, 
SwStyleBase_Impl& o_rStyleBase)

Reply via email to