summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-01-26 01:07:47 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-01-27 15:41:47 +0100
commitc11450935df073ac3fadfe1eb1ffb68e46f24b4f (patch)
tree7bf03b041b593c3aee2591efc9af81882a551c8e /sw
parentdee9ad9fdca594993190e2f79ca4696f9adf6b48 (diff)
Use indexed getToken
Change-Id: Icf0075e7487ea29db5f52846be531d30b231ee05 Reviewed-on: https://gerrit.libreoffice.org/66945 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/utlui/gloslst.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/gloslst.cxx b/sw/source/uibase/utlui/gloslst.cxx
index d7e97deff15b..6041dbd881d8 100644
--- a/sw/source/uibase/utlui/gloslst.cxx
+++ b/sw/source/uibase/utlui/gloslst.cxx
@@ -375,9 +375,10 @@ void SwGlossaryList::HasLongName(const OUString& rBegin, std::vector<OUString> *
for(size_t i = 0; i < nCount; ++i)
{
AutoTextGroup* pGroup = aGroupArr[i].get();
+ sal_Int32 nIdx{ 0 };
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() &&
rSCmp.isEqual( sBlock.copy(0, nBeginLen), rBegin ))
{