summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 13:00:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 15:24:34 +0200
commit9f958c076a86e80a48fcd7bbca65a834568e94ea (patch)
treecfa0b4f55a6b6717e5a359357fd20779e9d98b00 /forms
parenta40558be785756929f606ab0798a026b985e0ffb (diff)
loplugin:passstuffbyref
Change-Id: I336fd329b577b6fa141265d8bc7ce67784bd7306 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133210 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/richtext/richtextmodel.cxx2
-rw-r--r--forms/source/richtext/richtextmodel.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/richtext/richtextmodel.cxx b/forms/source/richtext/richtextmodel.cxx
index 1f5037b62d71..9f4266be1710 100644
--- a/forms/source/richtext/richtextmodel.cxx
+++ b/forms/source/richtext/richtextmodel.cxx
@@ -559,7 +559,7 @@ namespace frm
}
- Sequence<sal_Int8> ORichTextModel::getUnoTunnelId()
+ const Sequence<sal_Int8> & ORichTextModel::getUnoTunnelId()
{
static const comphelper::UnoIdInit aId;
return aId.getSeq();
diff --git a/forms/source/richtext/richtextmodel.hxx b/forms/source/richtext/richtextmodel.hxx
index 3dc0987b33b3..cf0bae7db435 100644
--- a/forms/source/richtext/richtextmodel.hxx
+++ b/forms/source/richtext/richtextmodel.hxx
@@ -126,7 +126,7 @@ namespace frm
// XUnoTunnel
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
- static css::uno::Sequence<sal_Int8> getUnoTunnelId();
+ static const css::uno::Sequence<sal_Int8> & getUnoTunnelId();
// XModifyBroadcaster
virtual void SAL_CALL addModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener ) override;