diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-06-09 22:32:17 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-06-09 22:32:17 +0200 |
commit | 121ec60a5d711178380cf68a1416dbe3274fe54b (patch) | |
tree | 03227941449b8fd2d4dff8566496ce198e9cd44d /lotuswordpro/source/filter/localtime.cxx | |
parent | Workaround a limitation of draw (diff) | |
download | core-121ec60a5d711178380cf68a1416dbe3274fe54b.tar.gz core-121ec60a5d711178380cf68a1416dbe3274fe54b.zip |
Some cppcheck cleaning
Diffstat (limited to 'lotuswordpro/source/filter/localtime.cxx')
-rw-r--r-- | lotuswordpro/source/filter/localtime.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/localtime.cxx b/lotuswordpro/source/filter/localtime.cxx index c59ca62bc738..1eee2bfab2d4 100644 --- a/lotuswordpro/source/filter/localtime.cxx +++ b/lotuswordpro/source/filter/localtime.cxx @@ -176,7 +176,6 @@ bool LtgGmTime(long rtime,LtTm& rtm) }; bool LtgLocalTime(long rtime,LtTm& rtm) { - long ltime; if (rtime < 0) { return false; @@ -186,7 +185,7 @@ bool LtgLocalTime(long rtime,LtTm& rtm) { TimeZone* pLocalZone = TimeZone::createDefault(); long offset = (pLocalZone->getRawOffset())/1000; - ltime = rtime + offset; + long ltime = rtime + offset; return LtgGmTime(ltime,rtm); } return false; |