| Index: core/src/fpdfdoc/doc_ocg.cpp
|
| diff --git a/core/src/fpdfdoc/doc_ocg.cpp b/core/src/fpdfdoc/doc_ocg.cpp
|
| index ff790b9f08c837801d2044e4250b6af10e819ac5..4b48990fada7d4282cabaf4002a1247608f71972 100644
|
| --- a/core/src/fpdfdoc/doc_ocg.cpp
|
| +++ b/core/src/fpdfdoc/doc_ocg.cpp
|
| @@ -26,7 +26,7 @@ static FX_BOOL FPDFDOC_OCG_HasIntent(const CPDF_Dictionary* pDict,
|
| const CFX_ByteStringC& csDef = "") {
|
| FXSYS_assert(pDict);
|
| CPDF_Object* pIntent = pDict->GetElementValue("Intent");
|
| - if (pIntent == NULL) {
|
| + if (!pIntent) {
|
| return csElement == csDef;
|
| }
|
| CFX_ByteString bsIntent;
|
| @@ -190,7 +190,7 @@ FX_BOOL CPDF_OCContext::GetOCGVE(CPDF_Array* pExpression,
|
| if (nLevel > 32) {
|
| return FALSE;
|
| }
|
| - if (pExpression == NULL) {
|
| + if (!pExpression) {
|
| return FALSE;
|
| }
|
| int32_t iCount = pExpression->GetCount();
|
| @@ -210,7 +210,7 @@ FX_BOOL CPDF_OCContext::GetOCGVE(CPDF_Array* pExpression,
|
| FX_BOOL bValue = FALSE;
|
| for (int32_t i = 1; i < iCount; i++) {
|
| pOCGObj = pExpression->GetElementValue(1);
|
| - if (pOCGObj == NULL) {
|
| + if (!pOCGObj) {
|
| continue;
|
| }
|
| FX_BOOL bItem = FALSE;
|
|
|