[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - svtools/source
Andras Timar
andras.timar at collabora.com
Mon May 22 22:05:16 UTC 2017
svtools/source/svhtml/parhtml.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit efdefc4571a781857cc26f651159e1d9d3d4ff43
Author: Andras Timar <andras.timar at collabora.com>
Date: Tue May 23 00:02:09 2017 +0200
no need to cast to sal_uLong (in fact it is wrong)
Change-Id: I67063fe69aa7980f75fa8666916a695085a77a58
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index becae25e904b..9ec51dfce12e 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -2001,8 +2001,8 @@ bool HTMLParser::ParseMetaOptionsImpl(
bool valid = false;
if (comphelper::string::getTokenCount(aContent, ';') == 2)
{
- Date aDate((sal_uLong)aContent.getToken(0, ';').toInt32());
- tools::Time aTime((sal_uLong)aContent.getToken(1, ';').toInt64());
+ Date aDate(aContent.getToken(0, ';').toInt32());
+ tools::Time aTime(aContent.getToken(1, ';').toInt64());
DateTime aDateTime(aDate, aTime);
uDT = aDateTime.GetUNODateTime();
valid = true;
More information about the Libreoffice-commits
mailing list