summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-13 16:41:40 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-14 12:28:46 +0100
commit7dd028c0e498ba86d96e0e99744fec6ddc21a91d (patch)
tree38fc4a741aee2272ddfcd1f411920dd8fcd25f58 /sw
parent2ee0500b6033e7dbfef221e28042f23da361869e (diff)
cid#1545211 COPY_INSTEAD_OF_MOVE
and cid#1545218 COPY_INSTEAD_OF_MOVE cid#1545232 COPY_INSTEAD_OF_MOVE cid#1545243 COPY_INSTEAD_OF_MOVE cid#1545246 COPY_INSTEAD_OF_MOVE cid#1545251 COPY_INSTEAD_OF_MOVE cid#1545260 COPY_INSTEAD_OF_MOVE cid#1545261 COPY_INSTEAD_OF_MOVE cid#1545276 COPY_INSTEAD_OF_MOVE cid#1545295 COPY_INSTEAD_OF_MOVE cid#1545297 COPY_INSTEAD_OF_MOVE cid#1545301 COPY_INSTEAD_OF_MOVE cid#1545302 COPY_INSTEAD_OF_MOVE Change-Id: I97ba935a4a2b8715b55ebbf6e853a66260b2eb90 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160686 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/basesh.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index f4fe850450f0..39b7fb3c7227 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -835,12 +835,10 @@ bool UpdateFieldContents(SfxRequest& rReq, SwWrtShell& rWrtSh)
break;
}
comphelper::SequenceAsHashMap aMap(aFields[nFieldIndex++]);
- auto aName = aMap["Name"].get<OUString>();
- pRefMark->GetRefName() = aName;
+ pRefMark->GetRefName() = aMap["Name"].get<OUString>();
- OUString aContent = aMap["Content"].get<OUString>();
auto pTextRefMark = const_cast<SwTextRefMark*>(pRefMark->GetTextRefMark());
- pTextRefMark->UpdateFieldContent(pDoc, rWrtSh, aContent);
+ pTextRefMark->UpdateFieldContent(pDoc, rWrtSh, aMap["Content"].get<OUString>());
}
rWrtSh.EndAction();