diff options
Diffstat (limited to 'xfa/src/fxfa/src/app/xfa_checksum.cpp')
-rw-r--r-- | xfa/src/fxfa/src/app/xfa_checksum.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/src/fxfa/src/app/xfa_checksum.cpp b/xfa/src/fxfa/src/app/xfa_checksum.cpp index 48ab1ca21c..9c1597811f 100644 --- a/xfa/src/fxfa/src/app/xfa_checksum.cpp +++ b/xfa/src/fxfa/src/app/xfa_checksum.cpp @@ -162,7 +162,7 @@ FX_BOOL CXFA_ChecksumContext::UpdateChecksum(IFX_FileRead* pSrcFile, return m_pSAXReader->ContinueParse(NULL) > 99; } void CXFA_ChecksumContext::FinishChecksum() { - if (m_pSAXReader != NULL) { + if (m_pSAXReader) { m_pSAXReader->Release(); m_pSAXReader = NULL; } @@ -182,7 +182,7 @@ void CXFA_ChecksumContext::GetChecksum(CFX_ByteString& bsChecksum) { bsChecksum = m_bsChecksum; } void CXFA_ChecksumContext::Update(const CFX_ByteStringC& bsText) { - if (m_pByteContext != NULL) { + if (m_pByteContext) { CRYPT_SHA1Update(m_pByteContext, bsText.GetPtr(), bsText.GetLength()); } } |