Index: core/src/fpdfdoc/doc_ocg.cpp |
diff --git a/core/src/fpdfdoc/doc_ocg.cpp b/core/src/fpdfdoc/doc_ocg.cpp |
index 4e0e1c5a31db3b1ea961a3a930937316500c1ccd..ff790b9f08c837801d2044e4250b6af10e819ac5 100644 |
--- a/core/src/fpdfdoc/doc_ocg.cpp |
+++ b/core/src/fpdfdoc/doc_ocg.cpp |
@@ -24,7 +24,7 @@ static int32_t FPDFDOC_OCG_FindGroup(const CPDF_Object* pObject, |
static FX_BOOL FPDFDOC_OCG_HasIntent(const CPDF_Dictionary* pDict, |
const CFX_ByteStringC& csElement, |
const CFX_ByteStringC& csDef = "") { |
- FXSYS_assert(pDict != NULL); |
+ FXSYS_assert(pDict); |
Tom Sepez
2015/12/14 19:14:11
nit: segv on next line.
Lei Zhang
2015/12/15 01:38:32
Done.
|
CPDF_Object* pIntent = pDict->GetElementValue("Intent"); |
if (pIntent == NULL) { |
return csElement == csDef; |
@@ -89,7 +89,7 @@ static CFX_ByteString FPDFDOC_OCG_GetUsageTypeString( |
return csState; |
} |
CPDF_OCContext::CPDF_OCContext(CPDF_Document* pDoc, UsageType eUsageType) { |
- FXSYS_assert(pDoc != NULL); |
+ FXSYS_assert(pDoc); |
m_pDocument = pDoc; |
m_eUsageType = eUsageType; |
} |
@@ -235,9 +235,9 @@ FX_BOOL CPDF_OCContext::GetOCGVE(CPDF_Array* pExpression, |
} |
FX_BOOL CPDF_OCContext::LoadOCMDState(const CPDF_Dictionary* pOCMDDict, |
FX_BOOL bFromConfig) { |
- FXSYS_assert(pOCMDDict != NULL); |
+ FXSYS_assert(pOCMDDict); |
Tom Sepez
2015/12/14 19:14:11
nitto.
Lei Zhang
2015/12/15 01:38:32
Done.
|
CPDF_Array* pVE = pOCMDDict->GetArray("VE"); |
- if (pVE != NULL) { |
+ if (pVE) { |
return GetOCGVE(pVE, bFromConfig); |
} |
CFX_ByteString csP = pOCMDDict->GetString("P", "AnyOn"); |