From a6c3f0b62a53692efcc4056fdaade9263e200756 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 6 Nov 2024 13:39:33 +0200 Subject: loplugin:passstuffbyref in svx Change-Id: Ic5fd72cb64208c278ffc129591cd3d1131efdc08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176137 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/accessibility/AccessibleControlShape.cxx | 2 +- svx/source/accessibility/charmapacc.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/accessibility') diff --git a/svx/source/accessibility/AccessibleControlShape.cxx b/svx/source/accessibility/AccessibleControlShape.cxx index 28d2cdf3a001..ed04609bbfbd 100644 --- a/svx/source/accessibility/AccessibleControlShape.cxx +++ b/svx/source/accessibility/AccessibleControlShape.cxx @@ -67,7 +67,7 @@ namespace constexpr OUString LABEL_CONTROL_PROPERTY_NAME = u"LabelControl"_ustr; // return the property which should be used as AccessibleName - OUString lcl_getPreferredAccNameProperty( const Reference< XPropertySetInfo >& _rxPSI ) + const OUString & lcl_getPreferredAccNameProperty( const Reference< XPropertySetInfo >& _rxPSI ) { if ( _rxPSI.is() && _rxPSI->hasPropertyByName( LABEL_PROPERTY_NAME ) ) return LABEL_PROPERTY_NAME; diff --git a/svx/source/accessibility/charmapacc.cxx b/svx/source/accessibility/charmapacc.cxx index 191f71efc4ad..0f1fbf2b7f42 100644 --- a/svx/source/accessibility/charmapacc.cxx +++ b/svx/source/accessibility/charmapacc.cxx @@ -55,7 +55,7 @@ SvxShowCharSetItem::~SvxShowCharSetItem() } } -rtl::Reference SvxShowCharSetItem::GetAccessible() +const rtl::Reference & SvxShowCharSetItem::GetAccessible() { if( !m_xItem.is() ) { -- cgit