diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 19:18:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 14:47:34 -0600 |
commit | 7986dcfdcad22d7203f256fb9a4ad53bda4ca422 (patch) | |
tree | 0cf345a92fd1b7d864b446cc71d0ba1a1c0187aa /lotuswordpro/source/filter/localtime.cxx | |
parent | writerfilter: convert sprm:C{DxaSpace,CharScale,HpsKern,HpsPos} (diff) | |
download | core-7986dcfdcad22d7203f256fb9a4ad53bda4ca422.tar.gz core-7986dcfdcad22d7203f256fb9a4ad53bda4ca422.zip |
Remove visual noise from lotuswordpro
Change-Id: Ie161a2aa1a434d0778e1937a833819c934ed1889
Reviewed-on: https://gerrit.libreoffice.org/8281
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro/source/filter/localtime.cxx')
-rw-r--r-- | lotuswordpro/source/filter/localtime.cxx | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/lotuswordpro/source/filter/localtime.cxx b/lotuswordpro/source/filter/localtime.cxx index da6ce4610afa..f8af7e69d6c0 100644 --- a/lotuswordpro/source/filter/localtime.cxx +++ b/lotuswordpro/source/filter/localtime.cxx @@ -84,9 +84,8 @@ bool LtgGmTime(long rtime,LtTm& rtm) tmptim = (long)(caltim / FOURYEAR_SEC); caltim -= ((long)tmptim * FOURYEAR_SEC); - // //Determine which year of the interval - // + // 1970, 1974, 1978,...,etc. tmptim = (tmptim * 4) + 70; @@ -117,20 +116,19 @@ bool LtgGmTime(long rtime,LtTm& rtm) } } - // //tmptim now holds the value for tm_year. caltim now holds the //number of elapsed seconds since the beginning of that year. - // + rtm.tm_year = tmptim; - // + //Determine days since January 1 (0 - 365). This is the tm_yday value. //Leave caltim with number of elapsed seconds in that day. - // + rtm.tm_yday = (long)(caltim / DAY_SEC); caltim -= (long)(rtm.tm_yday) * DAY_SEC; - // + //Determine months since January (0 - 11) and day of month (1 - 31) - // + long* mdays; if ( islpyr ) { @@ -147,14 +145,13 @@ bool LtgGmTime(long rtime,LtTm& rtm) rtm.tm_mday = rtm.tm_yday - mdays[tmptim]; - // //Determine days since Sunday (0 - 6) - // + rtm.tm_wday = ((long)(rtime / DAY_SEC) + BASE_DOW) % 7; - // + //Determine hours since midnight (0 - 23), minutes after the hour //(0 - 59), and seconds after the minute (0 - 59). - // + rtm.tm_hour = (long)(caltim / 3600); caltim -= (long)rtm.tm_hour * 3600; @@ -163,9 +160,6 @@ bool LtgGmTime(long rtime,LtTm& rtm) rtm.tm_isdst = 0; - // - // - // //adjust year & month rtm.tm_year += 1900; ++(rtm.tm_mon); |