summaryrefslogtreecommitdiff
path: root/include/unotest
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-17 10:50:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-13 19:11:49 +0200
commit1743d74e87745a26043642a06dc8a57b1af29740 (patch)
tree86354c464ed2e51bf940b58333844c0ad0670d01 /include/unotest
parenta0b9a7e7f0d14d0f121e54cb8979074bc5dfbe38 (diff)
clang-tidy modernize-pass-by-value in various
Change-Id: Ie091b22bd77d4e1fbff46545bc86c12f1dbafcfe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138171 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotest')
-rw-r--r--include/unotest/macros_test.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/unotest/macros_test.hxx b/include/unotest/macros_test.hxx
index 85a99789ccdb..8773a6c99568 100644
--- a/include/unotest/macros_test.hxx
+++ b/include/unotest/macros_test.hxx
@@ -20,6 +20,7 @@
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/frame/XDesktop2.hpp>
+#include <utility>
struct TestMacroInfo
{
@@ -59,8 +60,8 @@ public:
std::function<void()> m_Func;
public:
- Resetter(std::function<void()> const& rFunc)
- : m_Func(rFunc)
+ Resetter(std::function<void()> aFunc)
+ : m_Func(std::move(aFunc))
{
}
~Resetter()