diff options
Diffstat (limited to 'pyuno/source/module')
-rw-r--r-- | pyuno/source/module/pyuno_adapter.cxx | 5 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_impl.hxx | 2 |
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(); |