summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/localtime.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-06-09 22:32:17 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-06-09 22:32:17 +0200
commit121ec60a5d711178380cf68a1416dbe3274fe54b (patch)
tree03227941449b8fd2d4dff8566496ce198e9cd44d /lotuswordpro/source/filter/localtime.cxx
parentWorkaround a limitation of draw (diff)
downloadcore-121ec60a5d711178380cf68a1416dbe3274fe54b.tar.gz
core-121ec60a5d711178380cf68a1416dbe3274fe54b.zip
Some cppcheck cleaning
Diffstat (limited to 'lotuswordpro/source/filter/localtime.cxx')
-rw-r--r--lotuswordpro/source/filter/localtime.cxx3
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;