Bug 784739 - Switch from NULL to nullptr in js/ductwork/, js/ipc/, and js/public/; r=ehsan
This commit is contained in:
@@ -40,7 +40,7 @@ ObjectStore::find(ObjectId id)
|
||||
{
|
||||
ObjectTable::Ptr p = table_.lookup(id);
|
||||
if (!p)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
return p->value;
|
||||
}
|
||||
|
||||
@@ -424,12 +424,12 @@ CpowIdHolder::ToObject(JSContext *cx, JSObject **objp)
|
||||
bool
|
||||
JavaScriptShared::Unwrap(JSContext *cx, const InfallibleTArray<CpowEntry> &aCpows, JSObject **objp)
|
||||
{
|
||||
*objp = NULL;
|
||||
*objp = nullptr;
|
||||
|
||||
if (!aCpows.Length())
|
||||
return true;
|
||||
|
||||
RootedObject obj(cx, JS_NewObject(cx, NULL, NULL, NULL));
|
||||
RootedObject obj(cx, JS_NewObject(cx, nullptr, nullptr, nullptr));
|
||||
if (!obj)
|
||||
return false;
|
||||
|
||||
@@ -446,8 +446,8 @@ JavaScriptShared::Unwrap(JSContext *cx, const InfallibleTArray<CpowEntry> &aCpow
|
||||
name.BeginReading(),
|
||||
name.Length(),
|
||||
v,
|
||||
NULL,
|
||||
NULL,
|
||||
nullptr,
|
||||
nullptr,
|
||||
JSPROP_ENUMERATE))
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user