diff options
author | dsinclair <dsinclair@chromium.org> | 2016-09-20 12:17:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-20 12:17:42 -0700 |
commit | 9f206f05eccf51089fe8a30bf52dc063ea5e2633 (patch) | |
tree | 484b1215a89619ca56b7957f07ff87f825bdcd80 /fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp | |
parent | 5b7c9bbf6c26ca272706814ad3598894ce5e4e3b (diff) | |
download | pdfium-9f206f05eccf51089fe8a30bf52dc063ea5e2633.tar.xz |
Cleanup CPDFXFA and CPDF document methods
This CL renames and cleans up some methods that are similar between
CPDF_Document and CPDFXFA_Document.
Review-Url: https://codereview.chromium.org/2351673004
Diffstat (limited to 'fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp')
-rw-r--r-- | fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp b/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp index ed9407858b..8db16bf4e9 100644 --- a/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp +++ b/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp @@ -108,7 +108,7 @@ FX_BOOL CPDFXFA_Document::LoadXFADoc() { return TRUE; } -int CPDFXFA_Document::GetPageCount() { +int CPDFXFA_Document::GetPageCount() const { if (!m_pPDFDoc && !m_pXFADoc) return 0; @@ -125,7 +125,7 @@ int CPDFXFA_Document::GetPageCount() { } } -CPDFXFA_Page* CPDFXFA_Document::GetPage(int page_index) { +CPDFXFA_Page* CPDFXFA_Document::GetXFAPage(int page_index) { if (page_index < 0) return nullptr; @@ -151,7 +151,7 @@ CPDFXFA_Page* CPDFXFA_Document::GetPage(int page_index) { return pPage; } -CPDFXFA_Page* CPDFXFA_Document::GetPage(CXFA_FFPageView* pPage) { +CPDFXFA_Page* CPDFXFA_Document::GetXFAPage(CXFA_FFPageView* pPage) const { if (!pPage) return nullptr; |