Kaydet (Commit) c1145093 authored tarafından Matteo Casalin's avatar Matteo Casalin

Use indexed getToken

Change-Id: Icf0075e7487ea29db5f52846be531d30b231ee05
Reviewed-on: https://gerrit.libreoffice.org/66945
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst dee9ad9f
...@@ -375,9 +375,10 @@ void SwGlossaryList::HasLongName(const OUString& rBegin, std::vector<OUString> * ...@@ -375,9 +375,10 @@ void SwGlossaryList::HasLongName(const OUString& rBegin, std::vector<OUString> *
for(size_t i = 0; i < nCount; ++i) for(size_t i = 0; i < nCount; ++i)
{ {
AutoTextGroup* pGroup = aGroupArr[i].get(); AutoTextGroup* pGroup = aGroupArr[i].get();
sal_Int32 nIdx{ 0 };
for(sal_uInt16 j = 0; j < pGroup->nCount; j++) for(sal_uInt16 j = 0; j < pGroup->nCount; j++)
{ {
OUString sBlock = pGroup->sLongNames.getToken(j, STRING_DELIM); OUString sBlock = pGroup->sLongNames.getToken(0, STRING_DELIM, nIdx);
if( nBeginLen + 1 < sBlock.getLength() && if( nBeginLen + 1 < sBlock.getLength() &&
rSCmp.isEqual( sBlock.copy(0, nBeginLen), rBegin )) rSCmp.isEqual( sBlock.copy(0, nBeginLen), rBegin ))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment