diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-09-22 20:47:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-23 09:19:44 +0200 |
commit | 672dce81178dc1b4b6ad54f2b5d922ee806acf91 (patch) | |
tree | e97a4e0a75a0111bc6cdbe6597d95aec6e31e1f3 /sw/source/core/doc | |
parent | bbcb3e68c75d9eb7da36788def8845a3e3e727f8 (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.cxx | 2 |
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); |