summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-12-17 13:35:22 -0800
committerTom Sepez <tsepez@chromium.org>2015-12-17 13:35:22 -0800
commit761660c4074269ac806d06c9bef70e4e9fb0eb29 (patch)
tree6ba6709f676261367161ab717f2dfe44eac89103 /fpdfsdk
parent0a9158b99a2002fb82301ebec20dbc23b3fc084c (diff)
downloadpdfium-761660c4074269ac806d06c9bef70e4e9fb0eb29.tar.xz
Tidy CPDF_RenderContext
- Remove unused Clear() method. - Replace Create() with actual ctors. - Avoid const casts. - Protect members. - Add missing const in adjacent code. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1536623004 .
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/src/fpdfview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp
index c719cea9ec..daf9cfcbcf 100644
--- a/fpdfsdk/src/fpdfview.cpp
+++ b/fpdfsdk/src/fpdfview.cpp
@@ -736,8 +736,7 @@ void FPDF_RenderPage_Retail(CRenderContext* pContext,
pContext->m_pDevice->SaveState();
pContext->m_pDevice->SetClip_Rect(&clip);
- pContext->m_pContext = new CPDF_RenderContext;
- pContext->m_pContext->Create(pPage);
+ pContext->m_pContext = new CPDF_RenderContext(pPage);
pContext->m_pContext->AppendObjectList(pPage, &matrix);
if (flags & FPDF_ANNOT) {