Commit 7944ca37 authored by ggaren's avatar ggaren
Browse files

Style change -- no review necessary.

        
        Use 0 instead of NULL in API .cpp files, to match our style guidelines.

        * API/JSContextRef.cpp:
        (JSEvaluate):
        * API/JSObjectRef.cpp:
        (JSFunctionMakeWithBody):
        (JSObjectCallAsFunction):
        (JSObjectCallAsConstructor):
        * API/JSValueRef.cpp:
        (JSValueToObject):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9c67b7a2
......@@ -75,7 +75,7 @@ JSValueRef JSEvaluate(JSContextRef context, JSStringBufferRef script, JSObjectRe
if (completion.complType() == Throw) {
if (exception)
*exception = completion.value();
return NULL;
return 0;
}
if (completion.value())
......
......@@ -88,7 +88,7 @@ JSObjectRef JSFunctionMakeWithBody(JSContextRef context, JSStringBufferRef body,
if (!bodyNode) {
if (exception)
*exception = Error::create(exec, SyntaxError, errMsg, errLine, sid, jsSourceURL);
return NULL;
return 0;
}
ScopeChain scopeChain;
......@@ -229,7 +229,7 @@ JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSOb
if (exception)
*exception = exec->exception();
exec->clearException();
result = NULL;
result = 0;
}
return result;
}
......@@ -254,8 +254,8 @@ JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object,
if (exec->hadException()) {
if (exception)
*exception = exec->exception();
result = NULL;
exec->clearException();
result = 0;
}
return result;
}
......
......@@ -204,7 +204,7 @@ JSObjectRef JSValueToObject(JSContextRef context, JSValueRef value)
JSObjectRef objectRef = toRef(jsValue->toObject(exec));
if (exec->hadException()) {
exec->clearException();
objectRef = NULL;
objectRef = 0;
}
return objectRef;
}
......
2006-07-08 Geoffrey Garen <ggaren@apple.com>
Style change -- no review necessary.
Use 0 instead of NULL in API .cpp files, to match our style guidelines.
* API/JSContextRef.cpp:
(JSEvaluate):
* API/JSObjectRef.cpp:
(JSFunctionMakeWithBody):
(JSObjectCallAsFunction):
(JSObjectCallAsConstructor):
* API/JSValueRef.cpp:
(JSValueToObject):
2006-07-08 Geoffrey Garen <ggaren@apple.com>
 
Reviewed by TimO.
......
Supports Markdown
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