Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: fpdfsdk/jsapi/fxjs_v8.cpp

Issue 2031653003: Get rid of NULLs in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_core
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/javascript/global.cpp ('k') | fpdfsdk/pdfwindow/PWL_Caret.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/jsapi/fxjs_v8.cpp
diff --git a/fpdfsdk/jsapi/fxjs_v8.cpp b/fpdfsdk/jsapi/fxjs_v8.cpp
index 73f6bbf4fb325d1a91c26d1373b61a9a9a6d6680..790d10b60201793649de1ccd3579e1496c7aa4df 100644
--- a/fpdfsdk/jsapi/fxjs_v8.cpp
+++ b/fpdfsdk/jsapi/fxjs_v8.cpp
@@ -314,7 +314,7 @@ void FXJS_InitializeRuntime(
v8::Isolate::Scope isolate_scope(pIsolate);
v8::HandleScope handle_scope(pIsolate);
v8::Local<v8::Context> v8Context =
- v8::Context::New(pIsolate, NULL, GetGlobalObjectTemplate(pIsolate));
+ v8::Context::New(pIsolate, nullptr, GetGlobalObjectTemplate(pIsolate));
v8::Context::Scope context_scope(v8Context);
FXJS_PerIsolateData::SetUp(pIsolate);
@@ -513,7 +513,7 @@ void FXJS_Error(v8::Isolate* pIsolate, const CFX_WideString& message) {
const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj) {
if (pObj.IsEmpty())
- return NULL;
+ return nullptr;
if (pObj->IsString())
return kFXJSValueNameString;
if (pObj->IsNumber())
@@ -528,7 +528,7 @@ const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj) {
return kFXJSValueNameNull;
if (pObj->IsUndefined())
return kFXJSValueNameUndefined;
- return NULL;
+ return nullptr;
}
void FXJS_SetPrivate(v8::Isolate* pIsolate,
@@ -572,7 +572,7 @@ void FXJS_FreePrivate(v8::Local<v8::Object> pObj) {
if (pObj.IsEmpty() || !pObj->InternalFieldCount())
return;
FXJS_FreePrivate(pObj->GetAlignedPointerFromInternalField(0));
- pObj->SetAlignedPointerInInternalField(0, NULL);
+ pObj->SetAlignedPointerInInternalField(0, nullptr);
}
v8::Local<v8::String> FXJS_WSToJSString(v8::Isolate* pIsolate,
« no previous file with comments | « fpdfsdk/javascript/global.cpp ('k') | fpdfsdk/pdfwindow/PWL_Caret.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698