summaryrefslogtreecommitdiff
path: root/pyuno
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 /pyuno
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 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_adapter.cxx5
-rw-r--r--pyuno/source/module/pyuno_impl.hxx2
2 files changed, 4 insertions, 3 deletions
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 <comphelper/sequence.hxx>
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/exc_hlp.hxx>
+#include <utility>
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();