diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-07 09:08:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-07 12:16:13 +0000 |
commit | be8b9b4d29abb951aea0ea195541143d256954dc (patch) | |
tree | f35cddad2b45e189b23d881cb7c194845eb5c933 /lotuswordpro | |
parent | 7d98edfa4955ab6280655a9678d6a913845fa2f3 (diff) |
loplugin:redundantcast find cstyle arithmetic casts
Change-Id: If7c259f0d12a41182f476ddb558f7cb5f76f9577
Reviewed-on: https://gerrit.libreoffice.org/36253
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/localtime.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/localtime.cxx b/lotuswordpro/source/filter/localtime.cxx index c243a36c07c0..9bb702b27271 100644 --- a/lotuswordpro/source/filter/localtime.cxx +++ b/lotuswordpro/source/filter/localtime.cxx @@ -78,7 +78,7 @@ bool LtgGmTime(long rtime,LtTm& rtm) long tmptim; long caltim = rtime; tmptim = (long)(caltim / FOURYEAR_SEC); - caltim -= ((long)tmptim * FOURYEAR_SEC); + caltim -= tmptim * FOURYEAR_SEC; //Determine which year of the interval @@ -121,7 +121,7 @@ bool LtgGmTime(long rtime,LtTm& rtm) //Leave caltim with number of elapsed seconds in that day. rtm.tm_yday = (long)(caltim / DAY_SEC); - caltim -= (long)(rtm.tm_yday) * DAY_SEC; + caltim -= rtm.tm_yday * DAY_SEC; //Determine months since January (0 - 11) and day of month (1 - 31) @@ -153,7 +153,7 @@ bool LtgGmTime(long rtime,LtTm& rtm) //(0 - 59), and seconds after the minute (0 - 59). rtm.tm_hour = (long)(caltim / 3600); - caltim -= (long)rtm.tm_hour * 3600; + caltim -= rtm.tm_hour * 3600; rtm.tm_min = (long)(caltim / 60); rtm.tm_sec = (long)(caltim - (rtm.tm_min) * 60); |