diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-28 10:41:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-28 12:42:54 +0200 |
commit | 2bf18879d77b6f4e7e8b54267157741f11fb8c5b (patch) | |
tree | e82a7b0377130eebe30fbcd1a8f075e7cd2c8efd /include/test/util/xsearchable.hxx | |
parent | 47099350beb5d955d16776e43aa2276d4760eecb (diff) |
clang-tidy modernize-pass-by-value in test
Change-Id: I375ff43a60d0058be36dd07e409027ad1dcd1bcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136558
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/test/util/xsearchable.hxx')
-rw-r--r-- | include/test/util/xsearchable.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/test/util/xsearchable.hxx b/include/test/util/xsearchable.hxx index 9f45f051edff..0f78ceb18cb1 100644 --- a/include/test/util/xsearchable.hxx +++ b/include/test/util/xsearchable.hxx @@ -13,13 +13,14 @@ #include <test/testdllapi.hxx> #include <com/sun/star/uno/Reference.hxx> +#include <utility> namespace apitest { class OOO_DLLPUBLIC_TEST XSearchable { public: - XSearchable(const OUString& rString, sal_Int32 nCount) : maSearchString(rString), mnCount(nCount) {} + XSearchable(OUString aString, sal_Int32 nCount) : maSearchString(std::move(aString)), mnCount(nCount) {} XSearchable() : maSearchString("SearchString"), mnCount(1) {} virtual ~XSearchable(); |