summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-22 15:29:20 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-22 19:56:04 +0000
commit3d06022ce5e7467c2ee12da97a2492b5be23885e (patch)
tree6b010d1fe11e3b12b94c45fb122e6f366e15df9d /fpdfsdk/fpdfxfa
parent70e23c828033ad6abcd0bf9096cc7d6a92d53464 (diff)
downloadpdfium-3d06022ce5e7467c2ee12da97a2492b5be23885e.tar.xz
Remove unused docview flag
When creating the XFA doc view we always pass the same docview flag (0). So, the map will only ever have one item in it. This Cl simplifies the code by removing the map and just dealing with a single doc view. Change-Id: If17e2cda4c3f6c1f45dec921844f09538cc890fc Reviewed-on: https://pdfium-review.googlesource.com/3149 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfxfa')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
index aaa0e9849b..653e086e16 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
@@ -119,7 +119,7 @@ bool CPDFXFA_Context::LoadXFADoc() {
else
m_iDocType = DOCTYPE_STATIC_XFA;
- m_pXFADocView = m_pXFADoc->CreateDocView(XFA_DOCVIEW_View);
+ m_pXFADocView = m_pXFADoc->CreateDocView();
if (m_pXFADocView->StartLayout() < 0) {
CloseXFADoc();
SetLastError(FPDF_ERR_XFALAYOUT);