diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-02 13:02:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-02 13:02:28 -0700 |
commit | 521b7508dfe8ab93975eeb9f4ef8068012c4dbd8 (patch) | |
tree | d51fec17bafc8c4ac70a7f80932749551ee6e5ff /fpdfsdk/fpdfview.cpp | |
parent | 25ec646b2c128a6beaa961ec2b2eeb673ed034ca (diff) | |
download | pdfium-521b7508dfe8ab93975eeb9f4ef8068012c4dbd8.tar.xz |
Rename CPDFXFA_Document to CPDFXFA_Context
The CPDFXFA_Document class isn't a document, it contains documents. Renamed
to make the purpose a bit clearer.
Review-Url: https://codereview.chromium.org/2469813004
Diffstat (limited to 'fpdfsdk/fpdfview.cpp')
-rw-r--r-- | fpdfsdk/fpdfview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp index d7ddab8a97..5d3dfd824a 100644 --- a/fpdfsdk/fpdfview.cpp +++ b/fpdfsdk/fpdfview.cpp @@ -37,7 +37,7 @@ #include "third_party/base/ptr_util.h" #ifdef PDF_ENABLE_XFA -#include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" +#include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" #include "fpdfsdk/fpdfxfa/cpdfxfa_page.h" #include "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h" #include "public/fpdf_formfill.h" @@ -71,7 +71,7 @@ CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc) { FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc) { #ifdef PDF_ENABLE_XFA return doc ? FPDFDocumentFromUnderlying( - new CPDFXFA_Document(pdfium::WrapUnique(doc))) + new CPDFXFA_Context(pdfium::WrapUnique(doc))) : nullptr; #else // PDF_ENABLE_XFA return FPDFDocumentFromUnderlying(doc); @@ -352,7 +352,7 @@ DLLEXPORT FPDF_BOOL STDCALL FPDF_HasXFAField(FPDF_DOCUMENT document, return FALSE; CPDF_Document* pdfDoc = - (static_cast<CPDFXFA_Document*>(document))->GetPDFDoc(); + (static_cast<CPDFXFA_Context*>(document))->GetPDFDoc(); if (!pdfDoc) return FALSE; @@ -374,7 +374,7 @@ DLLEXPORT FPDF_BOOL STDCALL FPDF_HasXFAField(FPDF_DOCUMENT document, } DLLEXPORT FPDF_BOOL STDCALL FPDF_LoadXFA(FPDF_DOCUMENT document) { - return document && (static_cast<CPDFXFA_Document*>(document))->LoadXFADoc(); + return document && (static_cast<CPDFXFA_Context*>(document))->LoadXFADoc(); } #endif // PDF_ENABLE_XFA |