diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-09 18:08:12 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-13 07:37:03 +0100 |
commit | 6c623c048cf2c741f875c2fff87c9d863d294b57 (patch) | |
tree | a60eb725fc143edbc9cff5d11103d8bd843ad863 /svtools/source/svhtml | |
parent | 6d52cd1c0b7270a512a8e4ea988432fdad3e4385 (diff) |
Use indexed getToken()
Change-Id: I0233ee1abefa5dc54835a2ce5f7be52ab9586262
Reviewed-on: https://gerrit.libreoffice.org/67623
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 1274be0c06ee..ade6dfa8691b 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -2029,8 +2029,9 @@ bool HTMLParser::ParseMetaOptionsImpl( bool valid = false; if (comphelper::string::getTokenCount(aContent, ';') == 2) { - Date aDate(aContent.getToken(0, ';').toInt32()); - auto nTime = aContent.getToken(1, ';').toInt64(); + sal_Int32 nIdx{ 0 }; + Date aDate(aContent.getToken(0, ';', nIdx).toInt32()); + auto nTime = aContent.getToken(0, ';', nIdx).toInt64(); if (nTime < 0) nTime = o3tl::saturating_toggle_sign(nTime); tools::Time aTime(nTime); |