Index: fpdfsdk/javascript/Document.cpp |
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp |
index 12d8c2df31ac372b212d80a4260fae63234e128b..076e99849e7fe89866e12cc5507aab16d38dd5ce 100644 |
--- a/fpdfsdk/javascript/Document.cpp |
+++ b/fpdfsdk/javascript/Document.cpp |
@@ -147,8 +147,8 @@ void CJS_Document::InitInstance(IJS_Runtime* pIRuntime) { |
Document::Document(CJS_Object* pJSObject) |
: CJS_EmbedObj(pJSObject), |
- m_isolate(NULL), |
- m_pDocument(NULL), |
+ m_isolate(nullptr), |
+ m_pDocument(nullptr), |
m_cwBaseURL(L""), |
m_bDelay(FALSE) {} |
@@ -715,8 +715,8 @@ FX_BOOL Document::mailDoc(IJS_Context* cc, |
pRuntime->BeginBlock(); |
CPDFDoc_Environment* pEnv = pRuntime->GetReaderApp(); |
- pEnv->JS_docmailForm(NULL, 0, bUI, cTo.c_str(), cSubject.c_str(), cCc.c_str(), |
- cBcc.c_str(), cMsg.c_str()); |
+ pEnv->JS_docmailForm(nullptr, 0, bUI, cTo.c_str(), cSubject.c_str(), |
+ cCc.c_str(), cBcc.c_str(), cMsg.c_str()); |
pRuntime->EndBlock(); |
return TRUE; |