summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docfld.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-11 11:04:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-12 08:04:16 +0200
commit24865e2d57a32aab7212b1a283f9b30215900dda (patch)
tree9fce0db252a9a8b9959b46ce7cad326be6255329 /sw/source/core/doc/docfld.cxx
parent7786bafdb8951aa3f0acda801ddb3704c81d00d8 (diff)
clang-tidy modernize-pass-by-value in sw
Change-Id: I9a3b33595e34a264baeede33672a0c090ae85157 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docfld.cxx')
-rw-r--r--sw/source/core/doc/docfld.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index bdc8b0c9f22d..8f50b72ced7b 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -58,6 +58,7 @@
#include <authfld.hxx>
#include <txtinet.hxx>
#include <fmtcntnt.hxx>
+#include <utility>
using namespace ::com::sun::star::uno;
@@ -363,9 +364,9 @@ sal_Int32 SetGetExpField::GetCntPosFromContent() const
return nRet;
}
-HashStr::HashStr( const OUString& rName, const OUString& rText,
+HashStr::HashStr( const OUString& rName, OUString aText,
HashStr* pNxt )
- : SwHash( rName ), aSetStr( rText )
+ : SwHash( rName ), aSetStr(std::move( aText ))
{
pNext.reset( pNxt );
}