summaryrefslogtreecommitdiff
path: root/xfa/fxfa/xfa_ffdoc.h
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 /xfa/fxfa/xfa_ffdoc.h
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 'xfa/fxfa/xfa_ffdoc.h')
-rw-r--r--xfa/fxfa/xfa_ffdoc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/xfa_ffdoc.h b/xfa/fxfa/xfa_ffdoc.h
index 44079704e7..af2bf2c796 100644
--- a/xfa/fxfa/xfa_ffdoc.h
+++ b/xfa/fxfa/xfa_ffdoc.h
@@ -38,7 +38,7 @@ class CXFA_FFDoc {
int32_t DoLoad(IFX_Pause* pPause = nullptr);
void StopLoad();
- CXFA_FFDocView* CreateDocView(uint32_t dwView = 0);
+ CXFA_FFDocView* CreateDocView();
bool OpenDoc(const CFX_RetainPtr<IFX_SeekableReadStream>& pStream);
bool OpenDoc(CPDF_Document* pPDFDoc);
@@ -67,7 +67,7 @@ class CXFA_FFDoc {
std::unique_ptr<CXFA_FFNotify> m_pNotify;
CPDF_Document* m_pPDFDoc;
std::map<uint32_t, FX_IMAGEDIB_AND_DPI> m_HashToDibDpiMap;
- std::map<uint32_t, std::unique_ptr<CXFA_FFDocView>> m_TypeToDocViewMap;
+ std::unique_ptr<CXFA_FFDocView> m_DocView;
uint32_t m_dwDocType;
};