summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cfxjse_engine.h')
-rw-r--r--fxjs/cfxjse_engine.h10
1 files changed, 5 insertions, 5 deletions
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<CJS_Runtime> const m_pSubordinateRuntime;
UnownedPtr<CXFA_Document> const m_pDocument;
std::unique_ptr<CFXJSE_Context> 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<CXFA_Object*, std::unique_ptr<CFXJSE_Value>> m_mapObjectToValue;
std::map<CXFA_Object*, std::unique_ptr<CFXJSE_Context>>
m_mapVariableToContext;
@@ -119,11 +119,11 @@ class CFXJSE_Engine final : public CFX_V8 {
std::vector<CXFA_Node*> m_upObjectArray;
// CacheList holds the List items so we can clean them up when we're done.
std::vector<std::unique_ptr<CXFA_List>> m_CacheList;
- std::vector<CXFA_Node*>* m_pScriptNodeArray;
+ std::vector<CXFA_Node*>* m_pScriptNodeArray = nullptr;
std::unique_ptr<CFXJSE_ResolveProcessor> m_ResolveProcessor;
std::unique_ptr<CFXJSE_FormCalcContext> 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_