summaryrefslogtreecommitdiff
path: root/ucb/source/regexp/regexp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 09:09:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 13:05:05 +0200
commitb4b4c129e9f00189978cd7b71fd74d0dca4c9ebc (patch)
tree1afab2d8c7eee21866030fd498faa53af6f9be66 /ucb/source/regexp/regexp.cxx
parent915f3959fe6b3e756b9797a9222b95d9b8c3d293 (diff)
clang-tidy modernize-pass-by-value in ucb
Change-Id: I641d05e360c3208845a2fa6721ac8ba1ad0f3309 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137667 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/regexp/regexp.cxx')
-rw-r--r--ucb/source/regexp/regexp.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/ucb/source/regexp/regexp.cxx b/ucb/source/regexp/regexp.cxx
index 4b4dc42ec947..0eeac4a4a80f 100644
--- a/ucb/source/regexp/regexp.cxx
+++ b/ucb/source/regexp/regexp.cxx
@@ -26,6 +26,7 @@
#include <rtl/character.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/ustring.hxx>
+#include <utility>
using namespace com::sun::star;
using namespace ucb_impl;
@@ -34,14 +35,14 @@ using namespace ucb_impl;
// Regexp
-inline Regexp::Regexp(Kind eTheKind, OUString const & rThePrefix,
- bool bTheEmptyDomain, OUString const & rTheInfix,
+inline Regexp::Regexp(Kind eTheKind, OUString aThePrefix,
+ bool bTheEmptyDomain, OUString aTheInfix,
bool bTheTranslation,
- OUString const & rTheReversePrefix):
+ OUString aTheReversePrefix):
m_eKind(eTheKind),
- m_aPrefix(rThePrefix),
- m_aInfix(rTheInfix),
- m_aReversePrefix(rTheReversePrefix),
+ m_aPrefix(std::move(aThePrefix)),
+ m_aInfix(std::move(aTheInfix)),
+ m_aReversePrefix(std::move(aTheReversePrefix)),
m_bEmptyDomain(bTheEmptyDomain),
m_bTranslation(bTheTranslation)
{