From e9885e77a7daf7a8d45eaf0290a1ea5f208c24c6 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 26 May 2016 10:14:00 -0700 Subject: Replace FXJSE_HCLASS with CFXJSE_Class* This CL removes FXJSE_HCLASS and replaces with CFXJSE_Class*. All variables have been updated to the new type. Review-Url: https://codereview.chromium.org/2014213002 --- xfa/fxfa/fm2js/xfa_fm2jscontext.cpp | 6 +++--- xfa/fxfa/fm2js/xfa_fm2jscontext.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xfa/fxfa/fm2js') diff --git a/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp b/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp index f875ad2713..add3e8ab3f 100644 --- a/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp +++ b/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp @@ -7164,7 +7164,7 @@ static FXJSE_FUNCTION formcalc_fm2js_functions[] = { {"fm_var_filter", CXFA_FM2JSContext::fm_var_filter}, }; CXFA_FM2JSContext::CXFA_FM2JSContext() - : m_hFMClass(nullptr), m_pDocument(nullptr) { + : m_pFMClass(nullptr), m_pDocument(nullptr) { FXSYS_memset(&m_fmClass, 0, sizeof(FXJSE_CLASS)); } CXFA_FM2JSContext::~CXFA_FM2JSContext() { @@ -7187,10 +7187,10 @@ void CXFA_FM2JSContext::Initialize(v8::Isolate* pScriptIsolate, m_fmClass.propNum = 0; m_fmClass.methNum = sizeof(formcalc_fm2js_functions) / sizeof(formcalc_fm2js_functions[0]); - m_hFMClass = FXJSE_DefineClass(pScriptContext, &m_fmClass); + m_pFMClass = FXJSE_DefineClass(pScriptContext, &m_fmClass); m_hValue = FXJSE_Value_Create(pScriptIsolate); FXJSE_Value_SetNull(m_hValue); - FXJSE_Value_SetObject(m_hValue, this, m_hFMClass); + FXJSE_Value_SetObject(m_hValue, this, m_pFMClass); } void CXFA_FM2JSContext::GlobalPropertyGetter(FXJSE_HVALUE hValue) { FXJSE_Value_Set(hValue, m_hValue); diff --git a/xfa/fxfa/fm2js/xfa_fm2jscontext.h b/xfa/fxfa/fm2js/xfa_fm2jscontext.h index 997b32fe59..81cf08b2a5 100644 --- a/xfa/fxfa/fm2js/xfa_fm2jscontext.h +++ b/xfa/fxfa/fm2js/xfa_fm2jscontext.h @@ -447,7 +447,7 @@ class CXFA_FM2JSContext { private: v8::Isolate* m_pIsolate; FXJSE_CLASS m_fmClass; - FXJSE_HCLASS m_hFMClass; + CFXJSE_Class* m_pFMClass; FXJSE_HVALUE m_hValue; CXFA_Document* m_pDocument; }; -- cgit v1.2.3