Kaydet (Commit) 6c623c04 authored tarafından Matteo Casalin's avatar Matteo Casalin

Use indexed getToken()

Change-Id: I0233ee1abefa5dc54835a2ce5f7be52ab9586262
Reviewed-on: https://gerrit.libreoffice.org/67623
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 6d52cd1c
...@@ -2029,8 +2029,9 @@ bool HTMLParser::ParseMetaOptionsImpl( ...@@ -2029,8 +2029,9 @@ bool HTMLParser::ParseMetaOptionsImpl(
bool valid = false; bool valid = false;
if (comphelper::string::getTokenCount(aContent, ';') == 2) if (comphelper::string::getTokenCount(aContent, ';') == 2)
{ {
Date aDate(aContent.getToken(0, ';').toInt32()); sal_Int32 nIdx{ 0 };
auto nTime = aContent.getToken(1, ';').toInt64(); Date aDate(aContent.getToken(0, ';', nIdx).toInt32());
auto nTime = aContent.getToken(0, ';', nIdx).toInt64();
if (nTime < 0) if (nTime < 0)
nTime = o3tl::saturating_toggle_sign(nTime); nTime = o3tl::saturating_toggle_sign(nTime);
tools::Time aTime(nTime); tools::Time aTime(nTime);
......
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