diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-05-04 22:58:22 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-05-04 22:58:22 +0200 |
commit | dc135ac4c097ef286de8a5ef4eff94e793567346 (patch) | |
tree | c3291fe104693a01227d56c3fc9df904215e8a5d /i18npool/source/calendar | |
parent | dd1041f12687d9735d55b09bab81165989d9044d (diff) |
Some cppcheck cleaning
Diffstat (limited to 'i18npool/source/calendar')
-rw-r--r-- | i18npool/source/calendar/calendar_hijri.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/i18npool/source/calendar/calendar_hijri.cxx b/i18npool/source/calendar/calendar_hijri.cxx index 4921c90f2223..ec0e86baf24e 100644 --- a/i18npool/source/calendar/calendar_hijri.cxx +++ b/i18npool/source/calendar/calendar_hijri.cxx @@ -269,12 +269,11 @@ Calendar_hijri::getGregorianDay(sal_Int32 lJulianDay, sal_Int32 *pnDay, sal_Int3 { /* working variables */ long lFactorA, lFactorB, lFactorC, lFactorD, lFactorE; - long lAdjust; /* test whether to adjust for the Gregorian calendar crossover */ if (lJulianDay >= GREGORIAN_CROSSOVER) { /* calculate a small adjustment */ - lAdjust = (long) (((float) (lJulianDay - 1867216) - 0.25) / 36524.25); + long lAdjust = (long) (((float) (lJulianDay - 1867216) - 0.25) / 36524.25); lFactorA = lJulianDay + 1 + lAdjust - ((long) (0.25 * lAdjust)); |