summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-17 11:53:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-22 10:19:42 +0200
commitcaf64a8c814bf821eef302fc6c2570c05b7fb169 (patch)
treee140f472cc12df2770112cd104e1b36d061ad5a9 /lotuswordpro
parent64d4e2a4c9c833f8f8730f06d4e822c1a8ccc9bc (diff)
Avoid reserved identifiers
Change-Id: I48654972e66b9a298940d800b2e04018cfd5bef8
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/localtime.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/lotuswordpro/source/filter/localtime.cxx b/lotuswordpro/source/filter/localtime.cxx
index 66455a4f7d91..d6be85751b3b 100644
--- a/lotuswordpro/source/filter/localtime.cxx
+++ b/lotuswordpro/source/filter/localtime.cxx
@@ -66,10 +66,6 @@ const long LONG_MAX=2147483647;
//01-01-70 was a Thursday
const long BASE_DOW = 4;
-long _lpdays[] = {-1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365};
-
-long _days[] = {-1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364};
-
bool LtgGmTime(long rtime,LtTm& rtm)
{
if (rtime < 0)
@@ -129,14 +125,18 @@ bool LtgGmTime(long rtime,LtTm& rtm)
//Determine months since January (0 - 11) and day of month (1 - 31)
- long* mdays;
+ long const * mdays;
if ( islpyr )
{
- mdays = _lpdays;
+ static long const lpdays[] =
+ {-1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365};
+ mdays = lpdays;
}
else
{
- mdays = _days;
+ static long const days[] =
+ {-1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364};
+ mdays = days;
}
for ( tmptim = 1 ; mdays[tmptim] < rtm.tm_yday ; tmptim++ ) ;