From 1743d74e87745a26043642a06dc8a57b1af29740 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 17 May 2022 10:50:59 +0200 Subject: 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 --- pyuno/source/module/pyuno_adapter.cxx | 5 +++-- pyuno/source/module/pyuno_impl.hxx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'pyuno') diff --git a/pyuno/source/module/pyuno_adapter.cxx b/pyuno/source/module/pyuno_adapter.cxx index 27c7eeae2ec7..595e09a1f85d 100644 --- a/pyuno/source/module/pyuno_adapter.cxx +++ b/pyuno/source/module/pyuno_adapter.cxx @@ -29,6 +29,7 @@ #include #include #include +#include using com::sun::star::beans::XIntrospectionAccess; @@ -51,8 +52,8 @@ using com::sun::star::reflection::ParamInfo; namespace pyuno { -Adapter::Adapter( const PyRef & ref, const Sequence< Type > &types ) - : mWrappedObject( ref ), +Adapter::Adapter( PyRef ref, const Sequence< Type > &types ) + : mWrappedObject(std::move( ref )), mInterpreter( (PyThreadState_Get()->interp) ), mTypes( types ) {} diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index 422f3fdb3dff..90e94af07401 100644 --- a/pyuno/source/module/pyuno_impl.hxx +++ b/pyuno/source/module/pyuno_impl.hxx @@ -259,7 +259,7 @@ private: public: public: - Adapter( const PyRef &obj, + Adapter( PyRef obj, const css::uno::Sequence< css::uno::Type > & types ); static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId(); -- cgit