diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-09 15:22:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-10 08:07:03 +0200 |
commit | 4c909d1466bf940f653984b61772cf19c320439d (patch) | |
tree | c29129af77615725b3cee5cf5e18796821b426e6 /pyuno | |
parent | 91d77d65190e7cf11dd7cd0b29d5de6b66061faf (diff) |
loplugin:passstuffbyref
Change-Id: Ib2b2650da7abc9260897f9b5aad619a0ea6ae941
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138052
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_adapter.cxx | 2 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_impl.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/source/module/pyuno_adapter.cxx b/pyuno/source/module/pyuno_adapter.cxx index b15387a2074e..27c7eeae2ec7 100644 --- a/pyuno/source/module/pyuno_adapter.cxx +++ b/pyuno/source/module/pyuno_adapter.cxx @@ -65,7 +65,7 @@ Adapter::~Adapter() mWrappedObject.scratch(); } -Sequence<sal_Int8> Adapter::getUnoTunnelId() +const Sequence<sal_Int8> & Adapter::getUnoTunnelId() { static const comphelper::UnoIdInit g_id; return g_id.getSeq(); diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index 9fda901886cb..422f3fdb3dff 100644 --- a/pyuno/source/module/pyuno_impl.hxx +++ b/pyuno/source/module/pyuno_impl.hxx @@ -262,7 +262,7 @@ public: Adapter( const PyRef &obj, const css::uno::Sequence< css::uno::Type > & types ); - static css::uno::Sequence< sal_Int8 > getUnoTunnelId(); + static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId(); const PyRef& getWrappedObject() const { return mWrappedObject; } const css::uno::Sequence< css::uno::Type >& getWrappedTypes() const { return mTypes; } virtual ~Adapter() override; |