summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_rendercontext.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-05 20:49:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-05 20:49:06 +0000
commitb20364c990152495dc259a4a8fc36cdd7dbd7ca4 (patch)
tree44dcb6edd4e9360e2cb576cb409613e8fb4849de /core/fpdfapi/render/cpdf_rendercontext.cpp
parent06f3042167126d60184dc3c401e71924cf3b46af (diff)
downloadpdfium-b20364c990152495dc259a4a8fc36cdd7dbd7ca4.tar.xz
Make CPDF_RenderStatus matrix params const-ref.
Eliminate the possibility of nullptr. Change-Id: I16c3e442d78e5151330db7227bd1c1630af3d4a3 Reviewed-on: https://pdfium-review.googlesource.com/c/43531 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_rendercontext.cpp')
-rw-r--r--core/fpdfapi/render/cpdf_rendercontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_rendercontext.cpp b/core/fpdfapi/render/cpdf_rendercontext.cpp
index 48b87d9f2c..604170fad0 100644
--- a/core/fpdfapi/render/cpdf_rendercontext.cpp
+++ b/core/fpdfapi/render/cpdf_rendercontext.cpp
@@ -75,10 +75,10 @@ void CPDF_RenderContext::Render(CFX_RenderDevice* pDevice,
FinalMatrix.Concat(*pLastMatrix);
status.SetDeviceMatrix(*pLastMatrix);
status.Initialize(nullptr, nullptr);
- status.RenderObjectList(layer.m_pObjectHolder.Get(), &FinalMatrix);
+ status.RenderObjectList(layer.m_pObjectHolder.Get(), FinalMatrix);
} else {
status.Initialize(nullptr, nullptr);
- status.RenderObjectList(layer.m_pObjectHolder.Get(), &layer.m_Matrix);
+ status.RenderObjectList(layer.m_pObjectHolder.Get(), layer.m_Matrix);
}
if (status.GetRenderOptions().HasFlag(RENDER_LIMITEDIMAGECACHE)) {
m_pPageCache->CacheOptimization(