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

Unified Diff: xfa/fxfa/app/xfa_ffimage.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/fxfa/app/xfa_ffimage.h ('k') | xfa/fxfa/app/xfa_ffimageedit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/app/xfa_ffimage.cpp
diff --git a/xfa/fxfa/app/xfa_ffimage.cpp b/xfa/fxfa/app/xfa_ffimage.cpp
index 7e4b0a9c34a07bf1a33e54d9b0cd914e1854bf70..e3ca9993773fb7db3921fddd3de51764241caa12 100644
--- a/xfa/fxfa/app/xfa_ffimage.cpp
+++ b/xfa/fxfa/app/xfa_ffimage.cpp
@@ -18,7 +18,7 @@ CXFA_FFImage::~CXFA_FFImage() {
CXFA_FFImage::UnloadWidget();
}
FX_BOOL CXFA_FFImage::IsLoaded() {
- return GetDataAcc()->GetImageImage() != NULL;
+ return !!GetDataAcc()->GetImageImage();
}
FX_BOOL CXFA_FFImage::LoadWidget() {
if (GetDataAcc()->GetImageImage()) {
@@ -28,7 +28,7 @@ FX_BOOL CXFA_FFImage::LoadWidget() {
return CXFA_FFDraw::LoadWidget();
}
void CXFA_FFImage::UnloadWidget() {
- GetDataAcc()->SetImageImage(NULL);
+ GetDataAcc()->SetImageImage(nullptr);
}
void CXFA_FFImage::RenderWidget(CFX_Graphics* pGS,
CFX_Matrix* pMatrix,
« no previous file with comments | « xfa/fxfa/app/xfa_ffimage.h ('k') | xfa/fxfa/app/xfa_ffimageedit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698