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

Unified Diff: xfa/fxjse/class.cpp

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: 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 | « xfa/fxgraphics/include/cfx_graphics.h ('k') | xfa/fxjse/context.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxjse/class.cpp
diff --git a/xfa/fxjse/class.cpp b/xfa/fxjse/class.cpp
index e7e061b5a3039b69e8b7fedfd418f20de0a92164..3d65438c8adbd6a3334305741a0f5a56ebe966d3 100644
--- a/xfa/fxjse/class.cpp
+++ b/xfa/fxjse/class.cpp
@@ -117,7 +117,7 @@ static void FXJSE_V8ConstructorCallback_Wrapper(
return;
}
ASSERT(info.This()->InternalFieldCount());
- info.This()->SetAlignedPointerInInternalField(0, NULL);
+ info.This()->SetAlignedPointerInInternalField(0, nullptr);
}
v8::Isolate* CFXJSE_Arguments::GetRuntime() const {
@@ -192,7 +192,7 @@ CFXJSE_Class* CFXJSE_Class::Create(
const FXJSE_CLASS_DESCRIPTOR* lpClassDefinition,
FX_BOOL bIsJSGlobal) {
if (!lpContext || !lpClassDefinition) {
- return NULL;
+ return nullptr;
}
CFXJSE_Class* pClass =
GetClassFromContext(lpContext, lpClassDefinition->name);
@@ -222,10 +222,10 @@ CFXJSE_Class* CFXJSE_Class::Create(
lpClassDefinition->properties[i].name),
lpClassDefinition->properties[i].getProc
? FXJSE_V8GetterCallback_Wrapper
- : NULL,
+ : nullptr,
lpClassDefinition->properties[i].setProc
? FXJSE_V8SetterCallback_Wrapper
- : NULL,
+ : nullptr,
v8::External::New(pIsolate, const_cast<FXJSE_PROPERTY_DESCRIPTOR*>(
lpClassDefinition->properties + i)),
static_cast<v8::PropertyAttribute>(v8::DontDelete));
« no previous file with comments | « xfa/fxgraphics/include/cfx_graphics.h ('k') | xfa/fxjse/context.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698