summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-18 23:23:24 +0200
committerEike Rathke <erack@redhat.com>2017-07-19 20:12:58 +0200
commit772b846c462e6465955769ed93cde046603073bb (patch)
treeec8f7a343e088feb8c42f6a57acf1ac891f71ade /connectivity
parent4d783c45062d030d278c076d7817b9589fa77d91 (diff)
Change the most obvious Date+=(long)... to Date+=static_cast<sal_Int32>(...)
Simple search git grep -l 'Date.*[+-].*[(<] *long *[>)]' Since commit f5b0cc2a3690ba963b3f150886e1d5ddddee9530 Date: Sat Jul 1 16:01:15 2017 +0200 Date operators +,-,+=,-= have sal_Int32 operands instead of long. Change-Id: I2387cbceadcb056831225e4111353980d50a94d4 Reviewed-on: https://gerrit.libreoffice.org/40163 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/calc/CTable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/calc/CTable.cxx b/connectivity/source/drivers/calc/CTable.cxx
index 73c73c1327bd..52737b61aca6 100644
--- a/connectivity/source/drivers/calc/CTable.cxx
+++ b/connectivity/source/drivers/calc/CTable.cxx
@@ -348,7 +348,7 @@ static void lcl_SetValue( ORowSetValue& rValue, const Reference<XSpreadsheet>& x
if ( eCellType == CellContentType_VALUE )
{
::Date aDate( rNullDate );
- aDate += (long)::rtl::math::approxFloor( xCell->getValue() );
+ aDate += static_cast<sal_Int32>(::rtl::math::approxFloor( xCell->getValue() ));
rValue = aDate.GetUNODate();
}
else