diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-26 18:42:28 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-26 18:42:28 +0000 |
commit | 0a6dbeffbc61f2140b1b845f6791c1b15b34cbd7 (patch) | |
tree | 7f17e935721f2e9752d2b80fe4cdcbb4f8eb79ba /core/fpdfapi/page/cpdf_image.h | |
parent | 785da23f6cce8004b8e7759345abd877dab953ea (diff) | |
download | pdfium-0a6dbeffbc61f2140b1b845f6791c1b15b34cbd7.tar.xz |
Add some more consts to unowned pointers.
Ideally, unowned ptrs might well be const, as updating something
through an unowned reference is best avoided.
Change-Id: Ida8111ffe0ee1e30bbf6b7718b0929dfb5cafdff
Reviewed-on: https://pdfium-review.googlesource.com/36050
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_image.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_image.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_image.h b/core/fpdfapi/page/cpdf_image.h index 9281a2c77d..be5883b946 100644 --- a/core/fpdfapi/page/cpdf_image.h +++ b/core/fpdfapi/page/cpdf_image.h @@ -29,9 +29,9 @@ class CPDF_Image : public Retainable { void ConvertStreamToIndirectObject(); - CPDF_Stream* GetStream() const { return m_pStream.Get(); } CPDF_Dictionary* GetDict() const; - CPDF_Dictionary* GetOC() const { return m_pOC.Get(); } + CPDF_Stream* GetStream() const { return m_pStream.Get(); } + const CPDF_Dictionary* GetOC() const { return m_pOC.Get(); } CPDF_Document* GetDocument() const { return m_pDocument.Get(); } int32_t GetPixelHeight() const { return m_Height; } @@ -82,7 +82,7 @@ class CPDF_Image : public Retainable { bool m_bInterpolate = false; UnownedPtr<CPDF_Document> const m_pDocument; MaybeOwned<CPDF_Stream> m_pStream; - UnownedPtr<CPDF_Dictionary> m_pOC; + UnownedPtr<const CPDF_Dictionary> m_pOC; }; #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ |