summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-26 18:42:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-26 18:42:28 +0000
commit0a6dbeffbc61f2140b1b845f6791c1b15b34cbd7 (patch)
tree7f17e935721f2e9752d2b80fe4cdcbb4f8eb79ba /core/fpdfapi/render
parent785da23f6cce8004b8e7759345abd877dab953ea (diff)
downloadpdfium-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/render')
-rw-r--r--core/fpdfapi/render/cpdf_imagerenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/render/cpdf_imagerenderer.cpp b/core/fpdfapi/render/cpdf_imagerenderer.cpp
index a5e2e27a25..d3e7075cc2 100644
--- a/core/fpdfapi/render/cpdf_imagerenderer.cpp
+++ b/core/fpdfapi/render/cpdf_imagerenderer.cpp
@@ -175,7 +175,7 @@ bool CPDF_ImageRenderer::Start(CPDF_RenderStatus* pStatus,
m_pImageObject = pImageObject;
m_BlendType = blendType;
m_pObj2Device = pObj2Device;
- CPDF_Dictionary* pOC = m_pImageObject->GetImage()->GetOC();
+ const CPDF_Dictionary* pOC = m_pImageObject->GetImage()->GetOC();
if (pOC && m_pRenderStatus->GetRenderOptions()->GetOCContext() &&
!m_pRenderStatus->GetRenderOptions()->GetOCContext()->CheckOCGVisible(
pOC)) {