summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-07-23 21:25:49 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-07-26 14:25:26 +0200
commit5592ac29309e954d32a55ab3f6e54ff5ef2e9cf6 (patch)
tree2814ca8bfc1da83dd765085c4154624c4673d5ea /sw
parent597759aab8e093c6c816da1ef334cfc70a56b70a (diff)
Use index in repeated OUString::getToken
Change-Id: Iecdcbb18cb798265fb8cd88189bf444e859cee7d
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 4d03f584134f..d2af8c14b06e 100644
--- a/sw/source/uibase/utlui/gloslst.cxx
+++ b/sw/source/uibase/utlui/gloslst.cxx
@@ -117,9 +117,10 @@ bool SwGlossaryList::GetShortName(const OUString& rLongName,
if(!rGroupName.isEmpty() && rGroupName != pGroup->sName)
continue;
+ sal_Int32 nPosLong = 0;
for(sal_uInt16 j = 0; j < pGroup->nCount; j++)
{
- OUString sLong = pGroup->sLongNames.getToken(j, STRING_DELIM);
+ const OUString sLong = pGroup->sLongNames.getToken(0, STRING_DELIM, nPosLong);
if(rLongName != sLong)
continue;