summaryrefslogtreecommitdiff
path: root/sw/inc/calc.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 09:27:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 15:08:26 +0200
commita3e061845b736409094af2bcc2a542ec94b093d9 (patch)
treed3a93c07d3a98f8b377a86382d883246fc68c288 /sw/inc/calc.hxx
parent502357eef1a6d74a0aeb0b3f2ed956cb6f671008 (diff)
clang-tidy modernize-pass-by-value in sw
Change-Id: Ie5c250c64f95e649d33d3f3da7b54e81a4b81d0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137781 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/calc.hxx')
-rw-r--r--sw/inc/calc.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/calc.hxx b/sw/inc/calc.hxx
index 7acfec20fde8..81ae76f4e29b 100644
--- a/sw/inc/calc.hxx
+++ b/sw/inc/calc.hxx
@@ -133,7 +133,7 @@ public:
// Calculate HashTables for VarTable and Operations
struct SwHash
{
- SwHash( const OUString& rStr );
+ SwHash( OUString aStr );
virtual ~SwHash();
OUString aStr;
std::unique_ptr<SwHash> pNext;
@@ -144,7 +144,7 @@ struct SwCalcExp final : public SwHash
SwSbxValue nValue;
const SwFieldType* pFieldType;
- SwCalcExp( const OUString& rStr, const SwSbxValue& rVal,
+ SwCalcExp( const OUString& rStr, SwSbxValue aVal,
const SwFieldType* pFieldType );
};