diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-10 12:09:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-11 08:44:09 +0200 |
commit | 71337b4327805b73e92c995153c5746d89793b13 (patch) | |
tree | fd66764b57912cb2a8b86618e97f1e90d607d2cd /sw/source/uibase/dochdl | |
parent | bab44a97d21d0ac8a8a06678e71024c1a830943f (diff) |
use more string_view in sw
Change-Id: Ibefb8549834ba5011286e3221f1ae276e2c0c0bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141153
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index d7a48ed8cd16..9f2e070162c4 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -233,14 +233,14 @@ OUString SwGlossaryHdl::GetGlossaryShortName(sal_uInt16 nId) } // ask for short name -OUString SwGlossaryHdl::GetGlossaryShortName(const OUString &rName) +OUString SwGlossaryHdl::GetGlossaryShortName(std::u16string_view aName) { OUString sReturn; SwTextBlocks *pTmp = m_pCurGrp ? m_pCurGrp.get() : m_rStatGlossaries.GetGroupDoc( m_aCurGrp ).release(); if(pTmp) { - sal_uInt16 nIdx = pTmp->GetLongIndex( rName ); + sal_uInt16 nIdx = pTmp->GetLongIndex( aName ); if( nIdx != sal_uInt16(-1) ) sReturn = pTmp->GetShortName( nIdx ); if( !m_pCurGrp ) |