summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_stream_acc.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-07-03 18:07:54 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-03 18:07:54 +0000
commit87a12747eafe83b88502b546ed3ef79d31d73241 (patch)
tree806ad13ec0ca96c86f86400e113f9ef851bdb5e3 /core/fpdfapi/parser/cpdf_stream_acc.h
parent1018198e505070005451a35638b657b43d1cd430 (diff)
downloadpdfium-87a12747eafe83b88502b546ed3ef79d31d73241.tar.xz
Use unowned ptr in cpdf_stream_acc
Change-Id: Ide081e462c83a5a209a2e6462dd12b298993f36f Reviewed-on: https://pdfium-review.googlesource.com/36850 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_stream_acc.h')
-rw-r--r--core/fpdfapi/parser/cpdf_stream_acc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_stream_acc.h b/core/fpdfapi/parser/cpdf_stream_acc.h
index 00bd353fcb..5d18723df5 100644
--- a/core/fpdfapi/parser/cpdf_stream_acc.h
+++ b/core/fpdfapi/parser/cpdf_stream_acc.h
@@ -37,7 +37,7 @@ class CPDF_StreamAcc : public Retainable {
return pdfium::make_span(GetData(), GetSize());
}
ByteString GetImageDecoder() const { return m_ImageDecoder; }
- const CPDF_Dictionary* GetImageParam() const { return m_pImageParam; }
+ const CPDF_Dictionary* GetImageParam() const { return m_pImageParam.Get(); }
std::unique_ptr<uint8_t, FxFreeDeleter> DetachData();
protected:
@@ -49,7 +49,7 @@ class CPDF_StreamAcc : public Retainable {
uint32_t m_dwSize = 0;
bool m_bNewBuf = false;
ByteString m_ImageDecoder;
- const CPDF_Dictionary* m_pImageParam = nullptr;
+ UnownedPtr<const CPDF_Dictionary> m_pImageParam;
UnownedPtr<const CPDF_Stream> const m_pStream;
uint8_t* m_pSrcData = nullptr;
};