[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Jan 27 14:42:06 UTC 2019
sw/source/uibase/utlui/gloslst.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit c11450935df073ac3fadfe1eb1ffb68e46f24b4f
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Jan 26 01:07:47 2019 +0100
Commit: Matteo Casalin <matteo.casalin at 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.casalin at 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 ))
{
More information about the Libreoffice-commits
mailing list