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

New commits:
commit 14b352924588ba1d1256d638c72757e4be73478f
Author:     Noel Grandin <[email protected]>
AuthorDate: Tue Feb 3 16:24:20 2026 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu Feb 5 09:29:33 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/+/198601
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/sw/source/core/unocore/unostyle.cxx 
b/sw/source/core/unocore/unostyle.cxx
index e6a0028295ea..77d6a35949d7 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1586,10 +1586,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