diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-29 09:26:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-29 09:40:44 +0000 |
commit | 1f93816dd5d75aca98f210017d0b58b7ef1d08da (patch) | |
tree | 8a048e4fe825dfcfe3db32d6545b9a4793c13e65 /sw/source/ui/misc/glossary.cxx | |
parent | 92c504b5bd9ec81474704f563b23a2fcd422d1d1 (diff) |
loplugin:stringadd in sw
when applying my upcoming patch to also consider O[U]StringBuffer
Change-Id: I0999a0b04236c276d49c541bbbe3932ba3e5e05d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149678
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/misc/glossary.cxx')
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index a1b328e6a20e..71b97a6e8ac0 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -85,8 +85,7 @@ static OUString lcl_GetValidShortCut( const OUString& rName ) while( rName[nStart-1]==' ' && nStart < nSz ) nStart++; - OUStringBuffer aBuf; - aBuf.append(rName[nStart-1]); + OUStringBuffer aBuf(OUString::number(rName[nStart-1])); for( ; nStart < nSz; ++nStart ) { |