From d39389f6ec2eb96695d2645e1fc4e71fd7c5da08 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 19 Sep 2018 18:55:24 +0000 Subject: Use MaybeOwned in CPDF_StreamAcc. Change-Id: Iba886e51cf34ea01ed0d93afc93c8ec0ffed4f52 Reviewed-on: https://pdfium-review.googlesource.com/42594 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- core/fpdfapi/parser/cpdf_stream_acc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 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 611c78d0f6..e725041e80 100644 --- a/core/fpdfapi/parser/cpdf_stream_acc.h +++ b/core/fpdfapi/parser/cpdf_stream_acc.h @@ -13,6 +13,7 @@ #include "core/fpdfapi/parser/cpdf_stream.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/fx_system.h" +#include "core/fxcrt/maybe_owned.h" #include "core/fxcrt/retain_ptr.h" #include "third_party/base/span.h" @@ -53,9 +54,8 @@ class CPDF_StreamAcc final : public Retainable { // Reads the raw data from |m_pStream|, or return nullptr on failure. std::unique_ptr ReadRawStream() const; - uint8_t* m_pData = nullptr; + MaybeOwned m_pData; uint32_t m_dwSize = 0; - bool m_bNewBuf = false; ByteString m_ImageDecoder; UnownedPtr m_pImageParam; UnownedPtr const m_pStream; -- cgit v1.2.3