Commit 8af3f7c0 authored by weinig@apple.com's avatar weinig@apple.com
Browse files

Windows build fix.

        * kjs/date_object.cpp:
        (KJS::DateProtoFuncToLocaleString::callAsFunction): Fix unused arg warning.
        (KJS::DateProtoFuncToLocaleDateString::callAsFunction): ditto
        (KJS::DateProtoFuncToLocaleTimeString::callAsFunction): ditto



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 027c3977
2007-11-08 Sam Weinig <sam@webkit.org>
Windows build fix.
* kjs/date_object.cpp:
(KJS::DateProtoFuncToLocaleString::callAsFunction): Fix unused arg warning.
(KJS::DateProtoFuncToLocaleDateString::callAsFunction): ditto
(KJS::DateProtoFuncToLocaleTimeString::callAsFunction): ditto
2007-11-08 Mark Rowe <mrowe@apple.com>
Gtk build fix.
......
......@@ -57,6 +57,7 @@
#include <wtf/Assertions.h>
#include <wtf/MathExtras.h>
#include <wtf/StringExtras.h>
#include <wtf/UnusedParam.h>
#if PLATFORM(MAC)
#include <CoreFoundation/CoreFoundation.h>
......@@ -1022,6 +1023,8 @@ JSValue* DateProtoFuncToLocaleString::callAsFunction(ExecState* exec, JSObject*
double secs = floor(milli / msPerSecond);
return jsString(formatLocaleDate(exec, secs, true, true, args));
#else
UNUSED_PARAM(args);
const bool utc = false;
GregorianDateTime t;
......@@ -1045,6 +1048,8 @@ JSValue* DateProtoFuncToLocaleDateString::callAsFunction(ExecState* exec, JSObje
double secs = floor(milli / msPerSecond);
return jsString(formatLocaleDate(exec, secs, true, false, args));
#else
UNUSED_PARAM(args);
const bool utc = false;
GregorianDateTime t;
......@@ -1068,6 +1073,8 @@ JSValue* DateProtoFuncToLocaleTimeString::callAsFunction(ExecState* exec, JSObje
double secs = floor(milli / msPerSecond);
return jsString(formatLocaleDate(exec, secs, false, true, args));
#else
UNUSED_PARAM(args);
const bool utc = false;
GregorianDateTime t;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment