diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-01-30 08:00:18 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-04 22:06:14 +0100 |
commit | 8936a61e2224c3d7f85c541aa02dd72e82044604 (patch) | |
tree | 5379029b8493fe0dae3e10ab8a554b868cd47a18 /sw | |
parent | c8adf591c724330aa999dfbdeacd94b470f59108 (diff) |
Use indexed getToken()
Change-Id: I613105a14a5e834bd9ac915261303b1e058340dd
Reviewed-on: https://gerrit.libreoffice.org/67318
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/fldui/flddok.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx index c267d8ba8995..2b68cecac158 100644 --- a/sw/source/ui/fldui/flddok.cxx +++ b/sw/source/ui/fldui/flddok.cxx @@ -175,10 +175,10 @@ void SwFieldDokPage::Reset(const SfxItemSet* ) if( !IsRefresh() ) { 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 >(sVal.toInt32()); + const sal_uInt16 nVal = static_cast< sal_uInt16 >(sUserData.getToken(0, ';', nIdx).toInt32()); if(nVal != USHRT_MAX) { for(sal_Int32 i = 0; i < m_pTypeLB->GetEntryCount(); i++) |