Kaydet (Commit) 8936a61e authored tarafından Matteo Casalin's avatar Matteo Casalin

Use indexed getToken()

Change-Id: I613105a14a5e834bd9ac915261303b1e058340dd
Reviewed-on: https://gerrit.libreoffice.org/67318
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst c8adf591
...@@ -175,10 +175,10 @@ void SwFieldDokPage::Reset(const SfxItemSet* ) ...@@ -175,10 +175,10 @@ void SwFieldDokPage::Reset(const SfxItemSet* )
if( !IsRefresh() ) if( !IsRefresh() )
{ {
const OUString sUserData = GetUserData(); const OUString sUserData = GetUserData();
if (sUserData.getToken(0, ';').equalsIgnoreAsciiCase(USER_DATA_VERSION_1)) sal_Int32 nIdx{ 0 };
if (sUserData.getToken(0, ';', nIdx).equalsIgnoreAsciiCase(USER_DATA_VERSION_1))
{ {
const OUString sVal = sUserData.getToken(1, ';'); const sal_uInt16 nVal = static_cast< sal_uInt16 >(sUserData.getToken(0, ';', nIdx).toInt32());
const sal_uInt16 nVal = static_cast< sal_uInt16 >(sVal.toInt32());
if(nVal != USHRT_MAX) if(nVal != USHRT_MAX)
{ {
for(sal_Int32 i = 0; i < m_pTypeLB->GetEntryCount(); i++) for(sal_Int32 i = 0; i < m_pTypeLB->GetEntryCount(); i++)
......
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