summaryrefslogtreecommitdiff
path: root/sw/source/core/doc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-09-22 20:47:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-23 09:19:44 +0200
commit672dce81178dc1b4b6ad54f2b5d922ee806acf91 (patch)
treee97a4e0a75a0111bc6cdbe6597d95aec6e31e1f3 /sw/source/core/doc
parentbbcb3e68c75d9eb7da36788def8845a3e3e727f8 (diff)
no need to allocate these SfxItemSet on the heap
Change-Id: Iefa9cb88eaadb4535bbbe59a939b9773d81a438d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122487 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc')
-rw-r--r--sw/source/core/doc/docfmt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index d2ccfaf81544..0f93a708c388 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -1898,7 +1898,7 @@ void SwDoc::ChgFormat(SwFormat & rFormat, const SfxItemSet & rSet)
}
GetIDocumentUndoRedo().AppendUndo(
- std::make_unique<SwUndoFormatAttr>(aOldSet, rFormat, /*bSaveDrawPt*/true));
+ std::make_unique<SwUndoFormatAttr>(std::move(aOldSet), rFormat, /*bSaveDrawPt*/true));
}
rFormat.SetFormatAttr(rSet);