From cf59f804ea8bc83fe0d70148de15a3b5cedc801f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 28 Aug 2018 22:52:30 +0000 Subject: Initialize some CFXJSE_Engine members in the header. Change-Id: I6fd6004cb6c2e5a801fce0fbb43a6f7d65f560dd Reviewed-on: https://pdfium-review.googlesource.com/41354 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- fxjs/cfxjse_engine.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fxjs/cfxjse_engine.h') diff --git a/fxjs/cfxjse_engine.h b/fxjs/cfxjse_engine.h index 632010d079..4d4daf8e0d 100644 --- a/fxjs/cfxjse_engine.h +++ b/fxjs/cfxjse_engine.h @@ -110,8 +110,8 @@ class CFXJSE_Engine final : public CFX_V8 { UnownedPtr const m_pSubordinateRuntime; UnownedPtr const m_pDocument; std::unique_ptr m_JsContext; - CFXJSE_Class* m_pJsClass; - CXFA_Script::Type m_eScriptType; + CFXJSE_Class* m_pJsClass = nullptr; + CXFA_Script::Type m_eScriptType = CXFA_Script::Type::Unknown; std::map> m_mapObjectToValue; std::map> m_mapVariableToContext; @@ -119,11 +119,11 @@ class CFXJSE_Engine final : public CFX_V8 { std::vector m_upObjectArray; // CacheList holds the List items so we can clean them up when we're done. std::vector> m_CacheList; - std::vector* m_pScriptNodeArray; + std::vector* m_pScriptNodeArray = nullptr; std::unique_ptr m_ResolveProcessor; std::unique_ptr m_FM2JSContext; - CXFA_Object* m_pThisObject; - XFA_AttributeEnum m_eRunAtType; + CXFA_Object* m_pThisObject = nullptr; + XFA_AttributeEnum m_eRunAtType = XFA_AttributeEnum::Client; }; #endif // FXJS_CFXJSE_ENGINE_H_ -- cgit v1.2.3