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

Unified Diff: core/fpdfdoc/doc_viewerPreferences.cpp

Issue 2032613003: Get rid of NULLs in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: s/NULL/nullptr/ Created 4 years, 7 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
Index: core/fpdfdoc/doc_viewerPreferences.cpp
diff --git a/core/fpdfdoc/doc_viewerPreferences.cpp b/core/fpdfdoc/doc_viewerPreferences.cpp
index a355635bf0e011f7d5b591ce06caa2064daf645f..3d943d2941ab1c73f8f663f87e55279d78115cd4 100644
--- a/core/fpdfdoc/doc_viewerPreferences.cpp
+++ b/core/fpdfdoc/doc_viewerPreferences.cpp
@@ -36,7 +36,7 @@ int32_t CPDF_ViewerPreferences::NumCopies() const {
}
CPDF_Array* CPDF_ViewerPreferences::PrintPageRange() const {
CPDF_Dictionary* pDict = m_pDoc->GetRoot();
- CPDF_Array* pRange = NULL;
+ CPDF_Array* pRange = nullptr;
Tom Sepez 2016/06/02 20:09:48 nit: local not needed.
Lei Zhang 2016/06/07 07:33:23 Done.
pDict = pDict->GetDictBy("ViewerPreferences");
if (!pDict) {
return pRange;

Powered by Google App Engine
This is Rietveld 408576698