diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-09 20:13:42 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-09 20:13:42 +0000 |
commit | 54ef2cb9eb5b145c6e973e95ccb488e121556ad7 (patch) | |
tree | 1cfd20ec575e8d825693256a17ca0f55b53f6b57 /core/fpdfapi/render/cpdf_dibsource.cpp | |
parent | a44b288c4132711d0d9dbcc6885fc98525748ad7 (diff) | |
download | pdfium-54ef2cb9eb5b145c6e973e95ccb488e121556ad7.tar.xz |
Mark numerious pointers as const.
They are mostly CPDF_Object* and derived classes, but others that should
be are marked const as well.
Change-Id: Ib3344d7d8db90940df8edc97c0dd6c59da080541
Reviewed-on: https://pdfium-review.googlesource.com/32180
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_dibsource.cpp')
-rw-r--r-- | core/fpdfapi/render/cpdf_dibsource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_dibsource.cpp b/core/fpdfapi/render/cpdf_dibsource.cpp index b8b91d2fe6..bbf91da868 100644 --- a/core/fpdfapi/render/cpdf_dibsource.cpp +++ b/core/fpdfapi/render/cpdf_dibsource.cpp @@ -224,7 +224,7 @@ CPDF_DIBSource::LoadState CPDF_DIBSource::StartLoadDIBSource( CPDF_Document* pDoc, const CPDF_Stream* pStream, bool bHasMask, - CPDF_Dictionary* pFormResources, + const CPDF_Dictionary* pFormResources, CPDF_Dictionary* pPageResources, bool bStdCS, uint32_t GroupFamily, @@ -366,7 +366,7 @@ bool CPDF_DIBSource::LoadColorInfo(const CPDF_Dictionary* pFormResources, return true; } - CPDF_Object* pCSObj = m_pDict->GetDirectObjectFor("ColorSpace"); + const CPDF_Object* pCSObj = m_pDict->GetDirectObjectFor("ColorSpace"); if (!pCSObj) return false; |