[Libreoffice-commits] core.git: svtools/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Feb 13 06:37:28 UTC 2019


 svtools/source/svhtml/parhtml.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 6c623c048cf2c741f875c2fff87c9d863d294b57
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Feb 9 18:08:12 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at 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.casalin at 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);


More information about the Libreoffice-commits mailing list