From 8509d3eaec1b2fac27a24de7bc586ad12b7bb178 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 4 Dec 2017 06:13:55 +0000 Subject: Make a CXFA_DocumentParser member Unowned. Fix/cleanup ctors/dtors in related classes. Change-Id: Ia05ec9b6892fd7d19d0a417fc1226a407e3ac260 Reviewed-on: https://pdfium-review.googlesource.com/20216 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- fpdfsdk/fpdfxfa/cpdfxfa_context.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_context.h') diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.h b/fpdfsdk/fpdfxfa/cpdfxfa_context.h index f5b62f53da..acef8f2aa8 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_context.h +++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.h @@ -105,7 +105,7 @@ class CPDFXFA_Context : public IXFA_AppProvider { private: void CloseXFADoc(); - FormType m_FormType; + FormType m_FormType = FormType::kNone; std::unique_ptr m_pPDFDoc; std::unique_ptr m_pXFADoc; Observable::ObservedPtr m_pFormFillEnv; @@ -113,8 +113,8 @@ class CPDFXFA_Context : public IXFA_AppProvider { std::unique_ptr m_pXFAApp; std::unique_ptr m_pRuntime; std::vector> m_XFAPageList; - LoadStatus m_nLoadStatus; - int m_nPageCount; + LoadStatus m_nLoadStatus = FXFA_LOADSTATUS_PRELOAD; + int m_nPageCount = 0; // Must be destroyed before |m_pFormFillEnv|. CPDFXFA_DocEnvironment m_DocEnv; -- cgit v1.2.3