summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-21 20:50:22 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-22 12:30:22 +0200
commit8145fef39120402af49dfb32d3a60e5e9ef08651 (patch)
treeb05c83fe57f5031f6096279980424c4542d586a1 /sd
parenta3081afb197dfd55055657eb89c6305a24e9e530 (diff)
cid#1608488 avoid COPY_INSTEAD_OF_MOVE
can drop the copy and use the orig instead Change-Id: I1463ee677677a7861162742f0c74c33d4a5951ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170825 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drtxtob1.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx
index b0fb3a17c813..210362f16de1 100644
--- a/sd/source/ui/view/drtxtob1.cxx
+++ b/sd/source/ui/view/drtxtob1.cxx
@@ -163,9 +163,8 @@ void TextObjectBar::ExecuteImpl(ViewShell* mpViewShell, ::sd::View* mpView, SfxR
}
pNewItem->SetLeftValue( static_cast<sal_uInt16>(nLeft) );
- SfxItemSet aNewAttrs( aAttr );
- aNewAttrs.Put( std::move(pNewItem) );
- pOLV->GetOutliner()->SetParaAttribs( nPara, aNewAttrs );
+ aAttr.Put( std::move(pNewItem) );
+ pOLV->GetOutliner()->SetParaAttribs( nPara, aAttr );
}
}
pOLV->GetOutliner()->UndoActionEnd();