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

Eike Rathke erack at redhat.com
Thu May 11 12:26:46 UTC 2017


 svtools/source/svhtml/parhtml.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9b3585e3133a88b5b5c2231806a78116f1e52879
Author: Eike Rathke <erack at redhat.com>
Date:   Thu May 11 14:24:51 2017 +0200

    Casting from Int32 to uLong to Int32 doesn't make sense.
    
    Change-Id: I573c8c82998935e4853a3ee3f635845d450e32fe

diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index d4da3e7a0fa2..f7daee079cb1 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1969,7 +1969,7 @@ bool HTMLParser::ParseMetaOptionsImpl(
                 bool valid = false;
                 if (comphelper::string::getTokenCount(aContent, ';') == 2)
                 {
-                    Date aDate((sal_uLong)aContent.getToken(0, ';').toInt32());
+                    Date aDate(aContent.getToken(0, ';').toInt32());
                     tools::Time aTime(aContent.getToken(1, ';').toInt64());
                     DateTime aDateTime(aDate, aTime);
                     uDT = aDateTime.GetUNODateTime();


More information about the Libreoffice-commits mailing list