Bug 784739 - Switch from NULL to nullptr in js/ductwork/, js/ipc/, and js/public/; r=ehsan

This commit is contained in:
Birunthan Mohanathas
2013-09-19 15:24:53 -04:00
parent 5db97459fa
commit 49598e3eb0
16 changed files with 89 additions and 69 deletions

View File

@@ -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;