From 30540a95637256412eab3e87f954ee2b9793678f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 4 Oct 2018 22:31:12 +0000 Subject: 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 Reviewed-by: Tom Sepez --- fpdfsdk/fpdfxfa/cpdfxfa_page.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_page.h') 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 m_pPDFPage; - CXFA_FFPageView* m_pXFAPageView; + CXFA_FFPageView* m_pXFAPageView = nullptr; UnownedPtr const m_pContext; const int m_iPageIndex; }; -- cgit v1.2.3