summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-06 13:39:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-06 15:45:24 +0100
commita6c3f0b62a53692efcc4056fdaade9263e200756 (patch)
tree6fde89683d83cb263dd5e90b8634cfc3c9eb1f28 /svx/source/accessibility
parentd5b55513cdc05e8d622897201e233eb0ad5147b7 (diff)
loplugin:passstuffbyref in svx
Change-Id: Ic5fd72cb64208c278ffc129591cd3d1131efdc08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176137 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/AccessibleControlShape.cxx2
-rw-r--r--svx/source/accessibility/charmapacc.cxx2
2 files changed, 2 insertions, 2 deletions
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<SvxShowCharSetItemAcc> SvxShowCharSetItem::GetAccessible()
+const rtl::Reference<SvxShowCharSetItemAcc> & SvxShowCharSetItem::GetAccessible()
{
if( !m_xItem.is() )
{