summaryrefslogtreecommitdiff
path: root/forms/source/component
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-07 10:00:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-07 11:56:21 +0100
commit1e496ce2cf63daf792393bdb2b4881c77c095319 (patch)
tree77213af4b25394f4eb4b854acfdbdaa99b62db38 /forms/source/component
parent709b1f3ddb87303a2dec6155dbe0106369c151ed (diff)
loplugin:passstuffbyref in forms..framework
Change-Id: Ib5a013df49d532b139acd881127cfc82c7c5a6b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176190 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/component')
-rw-r--r--forms/source/component/ListBox.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index f828a768882a..d2371e4e5a18 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1465,12 +1465,12 @@ namespace frm
public:
explicit ExtractStringFromSequence_Safe( const std::vector< OUString >& _rList ) : m_rList( _rList ) { }
- OUString operator ()( sal_Int16 _nIndex )
+ const OUString & operator ()( sal_Int16 _nIndex )
{
OSL_ENSURE( _nIndex < static_cast<sal_Int32>(m_rList.size()), "ExtractStringFromSequence_Safe: inconsistence!" );
if ( _nIndex < static_cast<sal_Int32>(m_rList.size()) )
return m_rList[ _nIndex ];
- return OUString();
+ return EMPTY_OUSTRING;
}
};