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

New commits:
commit df872deb4ca0b74757137c7da76d116cc681b887
Author:     Noel Grandin <[email protected]>
AuthorDate: Tue Feb 3 16:24:20 2026 +0200
Commit:     Miklos Vajna <[email protected]>
CommitDate: Thu Feb 5 08:55:14 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]>

diff --git a/sw/source/core/unocore/unostyle.cxx 
b/sw/source/core/unocore/unostyle.cxx
index a1df24174d23..ebdcf00fc230 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1582,10 +1582,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