diff options
author | dsinclair <dsinclair@chromium.org> | 2016-06-08 13:12:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-08 13:12:41 -0700 |
commit | 769b137a435fd53a419ebbd1deb8617771b73ef6 (patch) | |
tree | 4b4a525a939349e30719b29a7cf1b9f8d78de6aa /xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp | |
parent | bc85eecc6cbac54e4b69fe202f802047d2979bf1 (diff) | |
download | pdfium-769b137a435fd53a419ebbd1deb8617771b73ef6.tar.xz |
Remove more FXJSE c-method wrappers.
This Cl cleans up a bunch of the FXJSE_* methods and moves others into the
classes where they most make sense.
Review-Url: https://codereview.chromium.org/2045883004
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp index 990a86517f..1a3ef8f151 100644 --- a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp +++ b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp @@ -311,9 +311,9 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_OpenList( CXFA_Node* pNode = NULL; if (iLength >= 1) { std::unique_ptr<CFXJSE_Value> pValue(pArguments->GetValue(0)); - if (FXJSE_Value_IsObject(pValue.get())) { + if (pValue->IsObject()) { pNode = ToNode(pValue.get(), nullptr); - } else if (FXJSE_Value_IsUTF8String(pValue.get())) { + } else if (pValue->IsString()) { CFX_ByteString bsString; pValue->ToString(bsString); CFX_WideString wsExpression = @@ -506,9 +506,9 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_SetFocus( CXFA_Node* pNode = NULL; if (iLength >= 1) { std::unique_ptr<CFXJSE_Value> pValue(pArguments->GetValue(0)); - if (FXJSE_Value_IsObject(pValue.get())) { + if (pValue->IsObject()) { pNode = ToNode(pValue.get(), nullptr); - } else if (FXJSE_Value_IsUTF8String(pValue.get())) { + } else if (pValue->IsString()) { CFX_ByteString bsString; pValue->ToString(bsString); CFX_WideString wsExpression = @@ -606,11 +606,11 @@ FX_BOOL CScript_HostPseudoModel::Script_HostPseudoModel_ValidateArgsForMsg( bIsJsType = TRUE; } std::unique_ptr<CFXJSE_Value> pValueArg(pArguments->GetValue(iArgIndex)); - if (!FXJSE_Value_IsUTF8String(pValueArg.get()) && bIsJsType) { + if (!pValueArg->IsString() && bIsJsType) { ThrowException(XFA_IDS_ARGUMENT_MISMATCH); return FALSE; } - if (FXJSE_Value_IsNull(pValueArg.get())) { + if (pValueArg->IsNull()) { wsValue = FX_WSTRC(L""); } else { CFX_ByteString byMessage; |