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

Unified Diff: core/src/fxge/ge/fx_ge_ps.cpp

Issue 1529553003: Merge to XFA: Get rid of most instance of 'foo != NULL' (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: 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: core/src/fxge/ge/fx_ge_ps.cpp
diff --git a/core/src/fxge/ge/fx_ge_ps.cpp b/core/src/fxge/ge/fx_ge_ps.cpp
index 6ce8f4635bac29cc90b2974617797daf228051e4..ceb2acf2bc77a14a945e410caafbac7a9a08d881 100644
--- a/core/src/fxge/ge/fx_ge_ps.cpp
+++ b/core/src/fxge/ge/fx_ge_ps.cpp
@@ -417,7 +417,7 @@ FX_BOOL CFX_PSRenderer::DrawDIBits(const CFX_DIBSource* pSource,
pConverted = pSource->CloneConvert(FXDIB_Rgb);
break;
case FXDIB_8bppRgb:
- if (pSource->GetPalette() != NULL) {
+ if (pSource->GetPalette()) {
pConverted = pSource->CloneConvert(FXDIB_Rgb);
}
break;
@@ -425,7 +425,7 @@ FX_BOOL CFX_PSRenderer::DrawDIBits(const CFX_DIBSource* pSource,
pConverted = pSource->CloneConvert(FXDIB_Cmyk);
break;
case FXDIB_8bppCmyk:
- if (pSource->GetPalette() != NULL) {
+ if (pSource->GetPalette()) {
pConverted = pSource->CloneConvert(FXDIB_Cmyk);
}
break;

Powered by Google App Engine
This is Rietveld 408576698