[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kjs
From:       Harri Porten <porten () kde ! org>
Date:       2005-04-17 18:05:19
Message-ID: 20050417180519.D6FDF488 () office ! kde ! org
[Download RAW message or body]

CVS commit by porten: 

cleanup


  M +1 -4      date_object.cpp   1.99


--- kdelibs/kjs/date_object.cpp  #1.98:1.99
@@ -653,6 +653,4 @@ static double ymdhms_to_seconds(int year
 }
 
-static const char haystack[37]="janfebmaraprmayjunjulaugsepoctnovdec";
-
 // we follow the recommendation of rfc2822 to consider all
 // obsolete time zones not listed here equivalent to "-0000"
@@ -723,4 +721,5 @@ static int findMonth(const char *monthSt
 {
   assert(monthStr);
+  static const char haystack[37] = "janfebmaraprmayjunjulaugsepoctnovdec";
   char needle[4];
   for (int i = 0; i < 3; ++i) {
@@ -762,5 +761,4 @@ double KJS::KRFCDate_parseDate(const USt
      const char *dateString = _date.ascii();
      int day = 0;
-     char monthStr[4];
      int month = -1; // not set yet
      int year = 0;
@@ -780,5 +778,4 @@ double KJS::KRFCDate_parseDate(const USt
         if ( isspace(*dateString) && dateString - wordStart >= 3 )
         {
-          //fprintf(stderr,"KJS::parseDate found word starting with '%s'\n", monthStr);
           month = findMonth(wordStart);
           while(*dateString && isspace(*dateString))


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic