2006-03-15 Eric Seidel <eseidel@apple.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Mar 2006 00:44:31 +0000 (00:44 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Mar 2006 00:44:31 +0000 (00:44 +0000)
        Reviewed by adele.

        Build fix.

        * kjs/date_object.cpp:
        (KJS::DateProtoFunc::callAsFunction): use size() not "len()"

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13318 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/date_object.cpp

index 76110b1524f066545f41531da635763a7c3841ee..006f35986288eed920ada22a77ad926bf8c7c276 100644 (file)
@@ -1,3 +1,12 @@
+2006-03-15  Eric Seidel  <eseidel@apple.com>
+
+        Reviewed by adele.
+
+        Build fix.
+
+        * kjs/date_object.cpp:
+        (KJS::DateProtoFunc::callAsFunction): use size() not "len()"
+
 2006-03-15  Eric Seidel  <eseidel@apple.com>
 
         Reviewed by mjs.
index 0a998a542e2b64770bade6b3a674c76eb156de1c..96c25b82a1f2ff9826e93ab6462327bb31706455 100644 (file)
@@ -558,7 +558,7 @@ JSValue *DateProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, const
   const int bufsize=100;
   char timebuffer[bufsize];
   CString oldlocale = setlocale(LC_TIME, 0);
-  if (!oldlocale.len())
+  if (!oldlocale.size())
     oldlocale = setlocale(LC_ALL, 0);
   // FIXME: Where's the code to set the locale back to oldlocale?
 #endif