summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/JSNavigatorCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/JSNavigatorCustom.cpp')
-rw-r--r--WebCore/bindings/js/JSNavigatorCustom.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/bindings/js/JSNavigatorCustom.cpp b/WebCore/bindings/js/JSNavigatorCustom.cpp
index a85eb93..2287426 100644
--- a/WebCore/bindings/js/JSNavigatorCustom.cpp
+++ b/WebCore/bindings/js/JSNavigatorCustom.cpp
@@ -54,7 +54,7 @@ static bool needsYouTubeQuirk(ExecState* exec, Frame* frame)
JSFunction* function = exec->function();
if (!function)
return false;
- static const Identifier& isWindowsFunctionName = *new Identifier(exec, "isWindows");
+ DEFINE_STATIC_LOCAL(const Identifier, isWindowsFunctionName, (exec, "isWindows"));
if (function->functionName() != isWindowsFunctionName)
return false;
@@ -70,8 +70,8 @@ static bool needsYouTubeQuirk(ExecState* exec, Frame* frame)
JSObject* thisObject = callingExec->thisValue();
if (!thisObject)
return false;
- static const Identifier& isSafariFunctionName = *new Identifier(exec, "isSafari");
- JSValue* isSafariFunction = thisObject->getDirect(isSafariFunctionName);
+ DEFINE_STATIC_LOCAL(const Identifier, isSafariFunction, (exec, "isSafari"));
+ JSValuePtr isSafariFunction = thisObject->getDirect(isSafariFunctionName);
if (isSafariFunction != callingFunction)
return false;
@@ -101,7 +101,7 @@ static bool needsYouTubeQuirk(ExecState* exec, Frame* frame)
#endif
-JSValue* JSNavigator::appVersion(ExecState* exec) const
+JSValuePtr JSNavigator::appVersion(ExecState* exec) const
{
Navigator* imp = static_cast<Navigator*>(impl());
Frame* frame = imp->frame();