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

Unified Diff: fpdfsdk/src/fsdk_mgr.cpp

Issue 1512763013: Get rid of most instance of 'foo != NULL' (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years 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
Index: fpdfsdk/src/fsdk_mgr.cpp
diff --git a/fpdfsdk/src/fsdk_mgr.cpp b/fpdfsdk/src/fsdk_mgr.cpp
index 314f4571b92fb50c9988e5a45707b2df401fc058..e7c1a3a6333be18f1ac102b57c205af187e5bceb 100644
--- a/fpdfsdk/src/fsdk_mgr.cpp
+++ b/fpdfsdk/src/fsdk_mgr.cpp
@@ -578,12 +578,10 @@ FX_BOOL CPDFSDK_Document::GetPermissions(int nFlag) {
}
IJS_Runtime* CPDFSDK_Document::GetJsRuntime() {
- ASSERT(m_pEnv != NULL);
return m_pEnv->GetJSRuntime();
}
CFX_WideString CPDFSDK_Document::GetPath() {
- ASSERT(m_pEnv != NULL);
return m_pEnv->JS_docGetFilePath();
}

Powered by Google App Engine
This is Rietveld 408576698