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

Use indexed getToken()

Change-Id: I0977533e71e070227e19555d140d1de307bf91f4
Reviewed-on: https://gerrit.libreoffice.org/67307
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 6affbd2b
...@@ -690,13 +690,14 @@ void SwGlossaryDlg::Init() ...@@ -690,13 +690,14 @@ void SwGlossaryDlg::Init()
OUString sGroupName(pGlossaryHdl->GetGroupName(nId, &sTitle)); OUString sGroupName(pGlossaryHdl->GetGroupName(nId, &sTitle));
if(sGroupName.isEmpty()) if(sGroupName.isEmpty())
continue; continue;
const OUString sName{ sGroupName.getToken( 0, GLOS_DELIM ) }; sal_Int32 nIdx{ 0 };
const OUString sName{ sGroupName.getToken( 0, GLOS_DELIM, nIdx ) };
if(sTitle.isEmpty()) if(sTitle.isEmpty())
sTitle = sName; sTitle = sName;
if(sTitle == sMyAutoTextEnglish) if(sTitle == sMyAutoTextEnglish)
sTitle = sMyAutoTextTranslated; sTitle = sMyAutoTextTranslated;
SvTreeListEntry* pEntry = m_pCategoryBox->InsertEntry( sTitle ); SvTreeListEntry* pEntry = m_pCategoryBox->InsertEntry( sTitle );
const sal_Int32 nPath = sGroupName.getToken( 1, GLOS_DELIM ).toInt32(); const sal_Int32 nPath = sGroupName.getToken( 0, GLOS_DELIM, nIdx ).toInt32();
GroupUserData* pData = new GroupUserData; GroupUserData* pData = new GroupUserData;
pData->sGroupName = sName; pData->sGroupName = sName;
......
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