diff options
Diffstat (limited to 'sw/source/filter/ww8/ww8graf.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 551376439e05..f798db5f25cd 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -521,9 +521,7 @@ void SwWW8ImplReader::InsertTxbxStyAttrs( SfxItemSet& rS, sal_uInt16 nColl ) ( SfxItemState::SET != rS.GetItemState(nWhich, false) ) ) { - std::unique_ptr<SfxPoolItem> pCopy(pItem->Clone()); - pCopy->SetWhich( nWhich ); - rS.Put( *pCopy ); + rS.Put( pItem->CloneSetWhich(nWhich) ); } } } @@ -735,9 +733,7 @@ void SwWW8ImplReader::InsertAttrsAsDrawingAttrs(WW8_CP nStartCp, WW8_CP nEndCp, nWhich != nSlotId ) { - std::unique_ptr<SfxPoolItem> pCopy(pItem->Clone()); - pCopy->SetWhich( nWhich ); - pS->Put( *pCopy ); + pS->Put( pItem->CloneSetWhich(nWhich) ); } } } |