Bug 784739 - Switch from NULL to nullptr in js/jsd/; r=ehsan
This commit is contained in:
@@ -129,7 +129,7 @@ jsd_CallExecutionHook(JSDContext* jsdc,
|
||||
JSD_HOOK_RETURN_CONTINUE;
|
||||
JSDThreadState* jsdthreadstate;
|
||||
|
||||
if(hook && NULL != (jsdthreadstate = jsd_NewThreadState(jsdc,cx)))
|
||||
if(hook && nullptr != (jsdthreadstate = jsd_NewThreadState(jsdc, cx)))
|
||||
{
|
||||
if ((type != JSD_HOOK_THROW && type != JSD_HOOK_INTERRUPTED) ||
|
||||
jsdc->flags & JSD_MASK_TOP_FRAME_ONLY ||
|
||||
@@ -179,7 +179,7 @@ jsd_CallCallHook (JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate;
|
||||
|
||||
hookanswer = false;
|
||||
if(hook && NULL != (jsdthreadstate = jsd_NewThreadState(jsdc, cx)))
|
||||
if(hook && nullptr != (jsdthreadstate = jsd_NewThreadState(jsdc, cx)))
|
||||
{
|
||||
hookanswer = hook(jsdc, jsdthreadstate, type, hookData);
|
||||
jsd_DestroyThreadState(jsdc, jsdthreadstate);
|
||||
@@ -206,8 +206,8 @@ bool
|
||||
jsd_ClearInterruptHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
JS_ClearInterrupt(jsdc->jsrt, NULL, NULL );
|
||||
jsdc->interruptHook = NULL;
|
||||
JS_ClearInterrupt(jsdc->jsrt, nullptr, nullptr);
|
||||
jsdc->interruptHook = nullptr;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return true;
|
||||
@@ -230,7 +230,7 @@ bool
|
||||
jsd_ClearDebugBreakHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->debugBreakHook = NULL;
|
||||
jsdc->debugBreakHook = nullptr;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return true;
|
||||
@@ -253,7 +253,7 @@ bool
|
||||
jsd_ClearDebuggerHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->debuggerHook = NULL;
|
||||
jsdc->debuggerHook = nullptr;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return true;
|
||||
@@ -276,7 +276,7 @@ bool
|
||||
jsd_ClearThrowHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->throwHook = NULL;
|
||||
jsdc->throwHook = nullptr;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return true;
|
||||
@@ -299,7 +299,7 @@ bool
|
||||
jsd_ClearFunctionHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->functionHook = NULL;
|
||||
jsdc->functionHook = nullptr;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return true;
|
||||
@@ -322,7 +322,7 @@ bool
|
||||
jsd_ClearTopLevelHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->toplevelHook = NULL;
|
||||
jsdc->toplevelHook = nullptr;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user