svtools/source/svhtml/parhtml.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 6c623c048cf2c741f875c2fff87c9d863d294b57 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sat Feb 9 18:08:12 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Wed Feb 13 07:37:03 2019 +0100 Use indexed getToken() Change-Id: I0233ee1abefa5dc54835a2ce5f7be52ab9586262 Reviewed-on: https://gerrit.libreoffice.org/67623 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits