diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-19 12:00:05 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-19 12:00:05 -0700 |
commit | aff4635dad81bc319266d9d84b81552580cd2b65 (patch) | |
tree | 0a071983cbcd7a50db4c4865099a8f6e93192123 /core/src/fpdfapi/fpdf_render | |
parent | 6101a5f98b27888f1736ae74982ed4d409d83be0 (diff) | |
download | pdfium-aff4635dad81bc319266d9d84b81552580cd2b65.tar.xz |
Sanity check the values of TRUE and FALSE.
Get rid of cond ? TRUE : FALSE.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1405723003 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_render')
-rw-r--r-- | core/src/fpdfapi/fpdf_render/fpdf_render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render.cpp index 1132d8acea..5b2158f17d 100644 --- a/core/src/fpdfapi/fpdf_render/fpdf_render.cpp +++ b/core/src/fpdfapi/fpdf_render/fpdf_render.cpp @@ -759,7 +759,7 @@ FX_BOOL CPDF_RenderStatus::ProcessTransparency( group_alpha = pStateData->m_FillAlpha; } Transparency = pFormObj->m_pForm->m_Transparency; - bGroupTransparent = Transparency & PDFTRANS_ISOLATED ? TRUE : FALSE; + bGroupTransparent = !!(Transparency & PDFTRANS_ISOLATED); if (pFormObj->m_pForm->m_pFormDict) { pFormResource = pFormObj->m_pForm->m_pFormDict->GetDict("Resources"); } |