diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-25 19:36:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-25 19:36:59 -0700 |
commit | 818e1900a3811e1bde1e594e4966db612f845966 (patch) | |
tree | 0c5f468fa2764d59bd81300c48bf5a0562ef70d5 /xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp | |
parent | 008ec70b47db2318a98e8474b7bfac6e10b2bc6c (diff) | |
download | pdfium-818e1900a3811e1bde1e594e4966db612f845966.tar.xz |
Remove parameters which are always null
These parameters are never set, remove them and their supporting code.
Review-Url: https://codereview.chromium.org/2009413002
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp index 94fa8db96c..a3b686bb56 100644 --- a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp +++ b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp @@ -310,7 +310,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_OpenList( if (iLength >= 1) { FXJSE_HVALUE hValue = pArguments->GetValue(0); if (FXJSE_Value_IsObject(hValue)) { - pNode = static_cast<CXFA_Node*>(FXJSE_Value_ToObject(hValue, nullptr)); + pNode = static_cast<CXFA_Node*>(FXJSE_Value_ToObject(hValue)); } else if (FXJSE_Value_IsUTF8String(hValue)) { CFX_ByteString bsString; FXJSE_Value_ToUTF8String(hValue, bsString); @@ -511,7 +511,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_SetFocus( if (iLength >= 1) { FXJSE_HVALUE hValue = pArguments->GetValue(0); if (FXJSE_Value_IsObject(hValue)) { - pNode = static_cast<CXFA_Node*>(FXJSE_Value_ToObject(hValue, NULL)); + pNode = static_cast<CXFA_Node*>(FXJSE_Value_ToObject(hValue)); } else if (FXJSE_Value_IsUTF8String(hValue)) { CFX_ByteString bsString; FXJSE_Value_ToUTF8String(hValue, bsString); |