diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 11:36:14 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-29 00:01:13 +0100 |
commit | 7ee8f2e34d1d50599a39b4d6f289ff03612ca6a3 (patch) | |
tree | 730fecb543be4e1da35f00a389568895ceda6613 /cui | |
parent | 7dc8f5144b2ae062c8fc3563e66cd080bd102c93 (diff) |
Use indexed getToken
Change-Id: I3f30a68653212c9d019c9799961f41e4e54595b3
Reviewed-on: https://gerrit.libreoffice.org/65677
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/chardlg.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 8ac253999f85..a2eaf26e7da4 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -2682,10 +2682,11 @@ void SvxCharPositionPage::Reset( const SfxItemSet* rSet ) if ( !sUser.isEmpty() ) { - m_nSuperEsc = static_cast<short>(sUser.getToken( 0, ';' ).toInt32()); - m_nSubEsc = static_cast<short>(sUser.getToken( 1, ';' ).toInt32()); - m_nSuperProp = static_cast<sal_uInt8>(sUser.getToken( 2, ';' ).toInt32()); - m_nSubProp = static_cast<sal_uInt8>(sUser.getToken( 3, ';' ).toInt32()); + sal_Int32 nIdx {0}; + m_nSuperEsc = static_cast<short>(sUser.getToken( 0, ';', nIdx ).toInt32()); + m_nSubEsc = static_cast<short>(sUser.getToken( 0, ';', nIdx ).toInt32()); + m_nSuperProp = static_cast<sal_uInt8>(sUser.getToken( 0, ';', nIdx ).toInt32()); + m_nSubProp = static_cast<sal_uInt8>(sUser.getToken( 0, ';', nIdx ).toInt32()); //fdo#75307 validate all the entries and discard all of them if any are //out of range |