diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-11 22:10:29 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-11 22:10:29 +0000 |
commit | 4412f3d87441c135ef56420f18d9229fbe247c3e (patch) | |
tree | 3a7250242f7bf0c254ea6038871f4e8aa2d536a2 /core/fpdfapi/parser/cpdf_stream_acc.h | |
parent | cb22f9ad9265f40b1104ed2b09488ccc6ec9e5aa (diff) | |
download | pdfium-4412f3d87441c135ef56420f18d9229fbe247c3e.tar.xz |
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 <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_stream_acc.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_stream_acc.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 CPDF_Stream> const m_pStream; - uint8_t* m_pSrcData; + uint8_t* m_pSrcData = nullptr; }; #endif // CORE_FPDFAPI_PARSER_CPDF_STREAM_ACC_H_ |