diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-07-26 21:09:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-27 08:06:21 +0200 |
commit | d5c8f58aa4485ed26827b69b94a195c78aaab6db (patch) | |
tree | eafb1ba94b9f0e3cdfcaef525a9c520858fc4db7 /xmloff/source | |
parent | 8ce64dbb3d7875c00963ae257d53f2b7b58fc4ad (diff) |
correct some Date related types
signature of Date and Date::DateToDays is
(sal_uInt16 d, sal_uInt16 m, sal_Int16 y)
same types as css::util::Date members Day, Month and Year
Change-Id: Ifa35574d2d335f7bf816dd5209988f4eaf7c5ac2
Reviewed-on: https://gerrit.libreoffice.org/40462
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/xmluconv.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx index 7aaa01c25d8e..6e8670d4d4d2 100644 --- a/xmloff/source/core/xmluconv.cxx +++ b/xmloff/source/core/xmluconv.cxx @@ -438,7 +438,7 @@ bool SvXMLUnitConverter::convertDateTime( double& fDateTime, if (bSuccess) { const Date aTmpNullDate(aTempNullDate.Day, aTempNullDate.Month, aTempNullDate.Year); - const Date aTempDate((sal_uInt16)aDateTime.Day, (sal_uInt16)aDateTime.Month, (sal_uInt16)aDateTime.Year); + const Date aTempDate(aDateTime.Day, aDateTime.Month, aDateTime.Year); const sal_Int32 nTage = aTempDate - aTmpNullDate; double fTempDateTime = nTage; double Hour = aDateTime.Hours; |