| Index: xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
|
| diff --git a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
|
| index 128620c9f8770c3a740f5fb1cc57e5e1bac95e0b..f9027dce185ae656ec81ffce45f83f64402aa1dc 100644
|
| --- a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
|
| +++ b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
|
| @@ -309,8 +309,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_OpenList(
|
| if (iLength >= 1) {
|
| std::unique_ptr<CFXJSE_Value> pValue(pArguments->GetValue(0));
|
| if (FXJSE_Value_IsObject(pValue.get())) {
|
| - pNode =
|
| - static_cast<CXFA_Node*>(FXJSE_Value_ToObject(pValue.get(), nullptr));
|
| + pNode = pValue.get()->ToNode(nullptr);
|
| } else if (FXJSE_Value_IsUTF8String(pValue.get())) {
|
| CFX_ByteString bsString;
|
| FXJSE_Value_ToUTF8String(pValue.get(), bsString);
|
| @@ -507,8 +506,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_SetFocus(
|
| if (iLength >= 1) {
|
| std::unique_ptr<CFXJSE_Value> pValue(pArguments->GetValue(0));
|
| if (FXJSE_Value_IsObject(pValue.get())) {
|
| - pNode =
|
| - static_cast<CXFA_Node*>(FXJSE_Value_ToObject(pValue.get(), nullptr));
|
| + pNode = pValue.get()->ToNode(nullptr);
|
| } else if (FXJSE_Value_IsUTF8String(pValue.get())) {
|
| CFX_ByteString bsString;
|
| FXJSE_Value_ToUTF8String(pValue.get(), bsString);
|
|
|