diff options
author | Eike Rathke <erack@redhat.com> | 2017-07-18 23:23:24 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-07-19 20:12:58 +0200 |
commit | 772b846c462e6465955769ed93cde046603073bb (patch) | |
tree | ec8f7a343e088feb8c42f6a57acf1ac891f71ade /sc/workben | |
parent | 4d783c45062d030d278c076d7817b9589fa77d91 (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 'sc/workben')
-rw-r--r-- | sc/workben/addin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/workben/addin.cxx b/sc/workben/addin.cxx index 7689afe85b86..0361ff0731cc 100644 --- a/sc/workben/addin.cxx +++ b/sc/workben/addin.cxx @@ -346,7 +346,7 @@ OUString SAL_CALL ScTestAddIn::getDateString( const css::uno::Reference< css::be { Date aNewDate( aDate.Day, aDate.Month, aDate.Year ); - aNewDate += (long)(fValue+0.5); + aNewDate += static_cast<sal_Int32>(fValue+0.5); String aRet; aRet += aNewDate.GetDay(); |