summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/cpdfxfa_page.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-04 22:31:12 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-04 22:31:12 +0000
commit30540a95637256412eab3e87f954ee2b9793678f (patch)
treebeebd9152140f22869e859faa24e5bfc90d3e0bb /fpdfsdk/fpdfxfa/cpdfxfa_page.h
parent7b0ff3c93dfb4925da5495794fde0fff1a68c9d1 (diff)
downloadpdfium-30540a95637256412eab3e87f954ee2b9793678f.tar.xz
Remove unreachable code in CPDFXFA_Page.
Also disambiguate LoadPDFPage() and do some cleanups. Change-Id: I591295cd5e742a14e41149b63e9d11d8c3d5b7fd Reviewed-on: https://pdfium-review.googlesource.com/c/43460 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_page.h')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_page.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_page.h b/fpdfsdk/fpdfxfa/cpdfxfa_page.h
index 1664c2a775..3e2118df6f 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_page.h
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_page.h
@@ -42,7 +42,7 @@ class CPDFXFA_Page final : public IPDF_Page {
const CFX_PointF& page_point) const override;
bool LoadPage();
- bool LoadPDFPage(CPDF_Dictionary* pageDict);
+ void LoadPDFPageFromDict(CPDF_Dictionary* pPageDict);
CPDF_Document::Extension* GetDocumentExtension() const;
int GetPageIndex() const { return m_iPageIndex; }
CXFA_FFPageView* GetXFAPageView() const { return m_pXFAPageView; }
@@ -59,7 +59,7 @@ class CPDFXFA_Page final : public IPDF_Page {
bool LoadXFAPageView();
RetainPtr<CPDF_Page> m_pPDFPage;
- CXFA_FFPageView* m_pXFAPageView;
+ CXFA_FFPageView* m_pXFAPageView = nullptr;
UnownedPtr<CPDFXFA_Context> const m_pContext;
const int m_iPageIndex;
};