diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-17 10:50:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-13 19:11:49 +0200 |
commit | 1743d74e87745a26043642a06dc8a57b1af29740 (patch) | |
tree | 86354c464ed2e51bf940b58333844c0ad0670d01 /smoketest | |
parent | a0b9a7e7f0d14d0f121e54cb8979074bc5dfbe38 (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 'smoketest')
-rw-r--r-- | smoketest/smoketest.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/smoketest/smoketest.cxx b/smoketest/smoketest.cxx index 80a29036f19b..3a4f2b1afc86 100644 --- a/smoketest/smoketest.cxx +++ b/smoketest/smoketest.cxx @@ -51,6 +51,7 @@ #include <unotest/gettestargument.hxx> #include <unotest/officeconnection.hxx> #include <unotest/toabsolutefileurl.hxx> +#include <utility> namespace { @@ -93,12 +94,11 @@ class Callback: public cppu::WeakImplHelper< css::awt::XCallback > { public: Callback( css::uno::Reference< css::frame::XNotifyingDispatch > const & dispatch, - css::util::URL const & url, + css::util::URL url, css::uno::Sequence< css::beans::PropertyValue > const & arguments, - css::uno::Reference< css::frame::XDispatchResultListener > const & - listener): - dispatch_(dispatch), url_(url), arguments_(arguments), - listener_(listener) + css::uno::Reference< css::frame::XDispatchResultListener > listener): + dispatch_(dispatch), url_(std::move(url)), arguments_(arguments), + listener_(std::move(listener)) { OSL_ASSERT(dispatch.is()); } private: |