sw/source/uibase/utlui/gloslst.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit c11450935df073ac3fadfe1eb1ffb68e46f24b4f Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sat Jan 26 01:07:47 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Sun Jan 27 15:41:47 2019 +0100 Use indexed getToken Change-Id: Icf0075e7487ea29db5f52846be531d30b231ee05 Reviewed-on: https://gerrit.libreoffice.org/66945 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> 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 )) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits