From 4412f3d87441c135ef56420f18d9229fbe247c3e Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 11 Dec 2017 22:10:29 +0000 Subject: Slightly simplify CPDF_StreamAcc::LoadAllData(). Also initialize members in the header. Change-Id: Ic1cda7f9ef4c69e26604c706678aed24bf4e8ee3 Reviewed-on: https://pdfium-review.googlesource.com/20790 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- core/fpdfapi/parser/cpdf_stream_acc.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/fpdfapi/parser/cpdf_stream_acc.h') diff --git a/core/fpdfapi/parser/cpdf_stream_acc.h b/core/fpdfapi/parser/cpdf_stream_acc.h index 6a18c43975..52ac7e2e05 100644 --- a/core/fpdfapi/parser/cpdf_stream_acc.h +++ b/core/fpdfapi/parser/cpdf_stream_acc.h @@ -44,13 +44,13 @@ class CPDF_StreamAcc : public Retainable { private: uint8_t* GetDataHelper() const; - uint8_t* m_pData; - uint32_t m_dwSize; - bool m_bNewBuf; + uint8_t* m_pData = nullptr; + uint32_t m_dwSize = 0; + bool m_bNewBuf = false; ByteString m_ImageDecoder; - CPDF_Dictionary* m_pImageParam; + CPDF_Dictionary* m_pImageParam = nullptr; UnownedPtr const m_pStream; - uint8_t* m_pSrcData; + uint8_t* m_pSrcData = nullptr; }; #endif // CORE_FPDFAPI_PARSER_CPDF_STREAM_ACC_H_ -- cgit v1.2.3