Kaydet (Commit) d5c8f58a authored tarafından Jochen Nitschke's avatar Jochen Nitschke Kaydeden (comit) Noel Grandin

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/40462Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 8ce64dbb
......@@ -60,7 +60,7 @@ namespace svt
namespace
{
double lcl_convertDateToDays( long const i_day, long const i_month, long const i_year )
double lcl_convertDateToDays( sal_uInt16 const i_day, sal_uInt16 const i_month, sal_Int16 const i_year )
{
long const nNullDateDays = ::Date::DateToDays( 1, 1, 1900 );
long const nValueDateDays = ::Date::DateToDays( i_day, i_month, i_year );
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment