diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-04 09:27:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-04 15:08:26 +0200 |
commit | a3e061845b736409094af2bcc2a542ec94b093d9 (patch) | |
tree | d3a93c07d3a98f8b377a86382d883246fc68c288 /sw/source/core/edit/edfcol.cxx | |
parent | 502357eef1a6d74a0aeb0b3f2ed956cb6f671008 (diff) |
clang-tidy modernize-pass-by-value in sw
Change-Id: Ie5c250c64f95e649d33d3f3da7b54e81a4b81d0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137781
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/edit/edfcol.cxx')
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index 829db44d1b3f..af8248d0e165 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -1667,13 +1667,13 @@ void SwEditShell::SetWatermark(const SfxWatermarkItem& rWatermark) } SwUndoParagraphSigning::SwUndoParagraphSigning(SwDoc& rDoc, - const uno::Reference<text::XTextField>& xField, - const uno::Reference<text::XTextContent>& xParent, + uno::Reference<text::XTextField> xField, + uno::Reference<text::XTextContent> xParent, const bool bRemove) : SwUndo(SwUndoId::PARA_SIGN_ADD, &rDoc), m_rDoc(rDoc), - m_xField(xField), - m_xParent(xParent), + m_xField(std::move(xField)), + m_xParent(std::move(xParent)), m_bRemove(bRemove) { // Save the metadata and field content to undo/redo. |