summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-18 10:12:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-18 12:01:00 +0200
commita6535669f9532b61ee5906d4b1339bc9af4b0882 (patch)
tree669d55c93400ff2dce49ee1953f47e6d496518bf /sw
parentf0454fe3bb5f8b589cc994203060a94d5cdad0a4 (diff)
use more pass-by-value in SfxItemSet
which avoids some copying Change-Id: Id774c8947d0c2676425a1a192e0ac28c8f8402db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138468 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unocrsrhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index 9e24ebd8a4cf..dbd944334f5e 100644
--- a/sw/source/core/unocore/unocrsrhelper.cxx
+++ b/sw/source/core/unocore/unocrsrhelper.cxx
@@ -1356,7 +1356,7 @@ void makeRedline( SwPaM const & rPaM,
{
sal_uInt16 nStylePoolId = USHRT_MAX;
OUString sParaStyleName, sUIStyle;
- SfxItemSet aItemSet(rDoc.GetAttrPool(), aWhichPairs);
+ SfxItemSet aItemSet(rDoc.GetAttrPool(), std::move(aWhichPairs));
for (size_t i = 0; i < aEntries.size(); ++i)
{