diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 16:04:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 17:19:36 +0200 |
commit | a006f60b6ae22db6acb57d06167a3c6fd8bc6f1b (patch) | |
tree | 707809080a1fbb95c101de7afe3233f85f0f7bcb /i18npool/source/calendar | |
parent | d116894b26f538793a0d5dc5847efd2fb53e7acb (diff) |
loplugin:oncevar in helpcompiler..jvmfwk
Change-Id: Ia9b20a8ca95684cbeb21e3425972c43ba50df3cd
Reviewed-on: https://gerrit.libreoffice.org/39187
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source/calendar')
-rw-r--r-- | i18npool/source/calendar/calendar_hijri.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/i18npool/source/calendar/calendar_hijri.cxx b/i18npool/source/calendar/calendar_hijri.cxx index 11046f8e9cbf..eeabf6d47472 100644 --- a/i18npool/source/calendar/calendar_hijri.cxx +++ b/i18npool/source/calendar/calendar_hijri.cxx @@ -316,12 +316,12 @@ Calendar_hijri::getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year) sal_Int32 intgr = (sal_Int32)((sal_Int32)(365.25 * jy) + (sal_Int32)(30.6001 * jm) + day + 1720995 ); //check for switch to Gregorian calendar - double gregcal = 15 + 31 * ( 10 + 12 * 1582 ); + double const gregcal = 15 + 31 * ( 10 + 12 * 1582 ); if( day + 31 * (month + 12 * year) >= gregcal ) { - double ja; - ja = (sal_Int32)(0.01 * jy); - intgr += (sal_Int32)(2 - ja + (sal_Int32)(0.25 * ja)); + double ja; + ja = (sal_Int32)(0.01 * jy); + intgr += (sal_Int32)(2 - ja + (sal_Int32)(0.25 * ja)); } return (double) intgr; |