diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-25 16:24:48 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-25 16:24:48 +0000 |
commit | 710fa99b0bd26e6761c4481b4b9b6d26d2954c3e (patch) | |
tree | 0c744f3485faa3a91779286dd0f5ef9c0ac26337 /core/fpdfapi/page/cpdf_docpagedata.h | |
parent | cbf1550e48e300142a53f635daba3c1d8910add9 (diff) | |
download | pdfium-710fa99b0bd26e6761c4481b4b9b6d26d2954c3e.tar.xz |
Mark CPDF_Object pointers in pattern code as const.
Change-Id: Id7bf252ebe25c92d26065d1138a445ebb2f78d0b
Reviewed-on: https://pdfium-review.googlesource.com/32187
Reviewed-by: dsinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_docpagedata.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_docpagedata.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_docpagedata.h b/core/fpdfapi/page/cpdf_docpagedata.h index 04b77cf3ed..41a5cd68be 100644 --- a/core/fpdfapi/page/cpdf_docpagedata.h +++ b/core/fpdfapi/page/cpdf_docpagedata.h @@ -64,11 +64,12 @@ class CPDF_DocPageData { RetainPtr<CPDF_IccProfile> GetIccProfile(const CPDF_Stream* pProfileStream); void MaybePurgeIccProfile(const CPDF_Stream* pProfileStream); - RetainPtr<CPDF_StreamAcc> GetFontFileStreamAcc(CPDF_Stream* pFontStream); + RetainPtr<CPDF_StreamAcc> GetFontFileStreamAcc( + const CPDF_Stream* pFontStream); void MaybePurgeFontFileStreamAcc(const CPDF_Stream* pFontStream); CPDF_CountedColorSpace* FindColorSpacePtr(const CPDF_Object* pCSObj) const; - CPDF_CountedPattern* FindPatternPtr(CPDF_Object* pPatternObj) const; + CPDF_CountedPattern* FindPatternPtr(const CPDF_Object* pPatternObj) const; private: using CPDF_CountedFont = CPDF_CountedObject<CPDF_Font>; |