summaryrefslogtreecommitdiff
path: root/include/test/container
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-28 10:41:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-28 12:42:54 +0200
commit2bf18879d77b6f4e7e8b54267157741f11fb8c5b (patch)
treee82a7b0377130eebe30fbcd1a8f075e7cd2c8efd /include/test/container
parent47099350beb5d955d16776e43aa2276d4760eecb (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/container')
-rw-r--r--include/test/container/xnameaccess.hxx5
-rw-r--r--include/test/container/xnamecontainer.hxx5
-rw-r--r--include/test/container/xnamed.hxx5
-rw-r--r--include/test/container/xnamereplace.hxx5
4 files changed, 12 insertions, 8 deletions
diff --git a/include/test/container/xnameaccess.hxx b/include/test/container/xnameaccess.hxx
index 960cf67822b9..875c2bed6098 100644
--- a/include/test/container/xnameaccess.hxx
+++ b/include/test/container/xnameaccess.hxx
@@ -15,14 +15,15 @@
#include <com/sun/star/uno/Reference.hxx>
#include <test/testdllapi.hxx>
+#include <utility>
namespace apitest
{
class OOO_DLLPUBLIC_TEST XNameAccess
{
public:
- XNameAccess(const OUString& rName)
- : m_aName(rName)
+ XNameAccess(OUString aName)
+ : m_aName(std::move(aName))
{
}
diff --git a/include/test/container/xnamecontainer.hxx b/include/test/container/xnamecontainer.hxx
index 221ef2a4473a..5cc4bab1250c 100644
--- a/include/test/container/xnamecontainer.hxx
+++ b/include/test/container/xnamecontainer.hxx
@@ -17,6 +17,7 @@
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Reference.hxx>
+#include <utility>
namespace apitest
{
@@ -29,8 +30,8 @@ public:
{
}
// removes given entry
- XNameContainer(const OUString& rNameToRemove)
- : m_aName(rNameToRemove)
+ XNameContainer(OUString aNameToRemove)
+ : m_aName(std::move(aNameToRemove))
{
}
diff --git a/include/test/container/xnamed.hxx b/include/test/container/xnamed.hxx
index ff4c4616df36..17ef070de947 100644
--- a/include/test/container/xnamed.hxx
+++ b/include/test/container/xnamed.hxx
@@ -17,14 +17,15 @@
#include <com/sun/star/uno/Reference.hxx>
#include <test/testdllapi.hxx>
+#include <utility>
namespace apitest
{
class OOO_DLLPUBLIC_TEST XNamed
{
public:
- XNamed(const OUString& rTestName)
- : m_aTestName(rTestName)
+ XNamed(OUString aTestName)
+ : m_aTestName(std::move(aTestName))
{
}
diff --git a/include/test/container/xnamereplace.hxx b/include/test/container/xnamereplace.hxx
index ecf2fac83798..dcecaf971755 100644
--- a/include/test/container/xnamereplace.hxx
+++ b/include/test/container/xnamereplace.hxx
@@ -17,14 +17,15 @@
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Any.hxx>
+#include <utility>
namespace apitest
{
class OOO_DLLPUBLIC_TEST XNameReplace
{
public:
- XNameReplace(const OUString& rName)
- : m_aReplacementName(rName)
+ XNameReplace(OUString aName)
+ : m_aReplacementName(std::move(aName))
{
}