From 4997b22f84307521a62838f874928bf56cd3423c Mon Sep 17 00:00:00 2001 From: thestig Date: Tue, 7 Jun 2016 10:46:22 -0700 Subject: Get rid of NULLs in core/ Review-Url: https://codereview.chromium.org/2032613003 --- core/fxcodec/codec/fx_codec_jbig.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/fxcodec/codec/fx_codec_jbig.cpp') diff --git a/core/fxcodec/codec/fx_codec_jbig.cpp b/core/fxcodec/codec/fx_codec_jbig.cpp index 2b0be1070e..30798fe361 100644 --- a/core/fxcodec/codec/fx_codec_jbig.cpp +++ b/core/fxcodec/codec/fx_codec_jbig.cpp @@ -68,7 +68,7 @@ void CCodec_Jbig2Module::DestroyJbig2Context(void* pJbig2Content) { ((CCodec_Jbig2Context*)pJbig2Content)->m_pContext); delete (CCodec_Jbig2Context*)pJbig2Content; } - pJbig2Content = NULL; + pJbig2Content = nullptr; } FXCODEC_STATUS CCodec_Jbig2Module::StartDecode( void* pJbig2Context, @@ -105,7 +105,7 @@ FXCODEC_STATUS CCodec_Jbig2Module::StartDecode( if (m_pJbig2Context->m_pContext->GetProcessingStatus() == FXCODEC_STATUS_DECODE_FINISH) { CJBig2_Context::DestroyContext(m_pJbig2Context->m_pContext); - m_pJbig2Context->m_pContext = NULL; + m_pJbig2Context->m_pContext = nullptr; if (ret != JBIG2_SUCCESS) { return FXCODEC_STATUS_ERROR; } @@ -127,7 +127,7 @@ FXCODEC_STATUS CCodec_Jbig2Module::ContinueDecode(void* pJbig2Context, return m_pJbig2Context->m_pContext->GetProcessingStatus(); } CJBig2_Context::DestroyContext(m_pJbig2Context->m_pContext); - m_pJbig2Context->m_pContext = NULL; + m_pJbig2Context->m_pContext = nullptr; if (ret != JBIG2_SUCCESS) { return FXCODEC_STATUS_ERROR; } -- cgit v1.2.3