From c064d54cd169390039eedae422bbb132f771d20a Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Wed, 8 Nov 2017 15:49:51 +0000 Subject: Use MaybeOwned in CPDF_ContentParser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7e5daeafd70ef29bcc9bdebbae004fa4b946b83d Reviewed-on: https://pdfium-review.googlesource.com/18019 Reviewed-by: Tom Sepez Commit-Queue: Nicolás Peña Moreno --- core/fpdfapi/page/cpdf_contentparser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/fpdfapi/page/cpdf_contentparser.h') diff --git a/core/fpdfapi/page/cpdf_contentparser.h b/core/fpdfapi/page/cpdf_contentparser.h index c4fcb9060b..c65da6da55 100644 --- a/core/fpdfapi/page/cpdf_contentparser.h +++ b/core/fpdfapi/page/cpdf_contentparser.h @@ -14,6 +14,7 @@ #include "core/fpdfapi/page/cpdf_pageobjectholder.h" #include "core/fpdfapi/page/cpdf_streamcontentparser.h" #include "core/fpdfapi/parser/cpdf_stream_acc.h" +#include "core/fxcrt/maybe_owned.h" #include "core/fxcrt/unowned_ptr.h" class CPDF_AllStates; @@ -52,7 +53,7 @@ class CPDF_ContentParser { uint32_t m_nStreams = 0; RetainPtr m_pSingleStream; std::vector> m_StreamArray; - uint8_t* m_pData = nullptr; + MaybeOwned m_pData; uint32_t m_Size = 0; uint32_t m_CurrentOffset = 0; -- cgit v1.2.3