From 24865e2d57a32aab7212b1a283f9b30215900dda Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 Aug 2022 11:04:01 +0200 Subject: 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 --- sw/source/core/doc/docfld.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sw/source/core/doc/docfld.cxx') 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 #include #include +#include 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 ); } -- cgit v1.2.3